跳到主要内容
版本:latest

update_composer

将服务器上已安装的 Composer 更新到最新版本。

  • 路由POST /files
  • actionupdate_composer

输入参数

参数名称必选类型描述
actionString固定值 update_composer

无其他参数。

输出参数

参数名称类型描述
statusBooleantrue 更新成功
msgString结果消息,如 当前已经是最新版本,无需升级!

示例

请求

POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=update_composer

响应

{"status": true, "msg": "当前已经是最新版本,无需升级!"}