app更新接口提交
This commit is contained in:
@@ -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]);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user