app更新接口提交

This commit is contained in:
wong
2025-08-29 16:46:47 +08:00
parent 02b394f31b
commit 1d731c0006
2 changed files with 21 additions and 2 deletions

View File

@@ -125,4 +125,20 @@ class Api extends Controller
$response->send();
exit;
}
public function uploadApp()
{
$type = $this->request->param('type', '');
if (empty($type)){
return json_encode(['code' => 500,'msg' => '参数缺失']);
}
$data = [
"version" => "1.1.0",
"downloadUrl"=> "http://kr-phone.quwanzhi.com/ckb.apk",
"updateContent"=> "1. 修复了已知问题\n2. 优化了用户体验\n3. 新增了某某功能"
];
return json_encode(['code' => 200,'msg' => '获取成功','data' => $data]);
}
}