新增获取最新版本接口

This commit is contained in:
weiz 2023-12-04 10:44:39 +08:00
parent 416b01bb0c
commit 0e1663a166
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace app\api\controller;
use app\common\model\AppUpdate;
class AppUpdateController extends BaseApiController
{
public function index() {
$data = AppUpdate::field('id,title,content,type,version,dow_url,force,quiet')->where('')->order('id desc')->findOrEmpty();
return $this->success('请求成功',$data->toArray());
}
}