新增获取最新版本接口
This commit is contained in:
parent
416b01bb0c
commit
0e1663a166
|
@ -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());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue