...
|
...
|
@@ -9,13 +9,14 @@ use app\common\model\Attachment; |
|
|
use app\common\model\Version;
|
|
|
use fast\Random;
|
|
|
use think\Config;
|
|
|
use think\Db;
|
|
|
|
|
|
/**
|
|
|
* 公共接口
|
|
|
*/
|
|
|
class Common extends Api
|
|
|
{
|
|
|
protected $noNeedLogin = ['init','upload','upload_base64','base64_image_content'];
|
|
|
protected $noNeedLogin = ['init','upload','upload_base64','base64_image_content','notice'];
|
|
|
protected $noNeedRight = '*';
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -288,4 +289,21 @@ class Common extends Api |
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (网站系统维护升级公告)
|
|
|
* @ApiSummary (网站系统维护升级公告)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1599017563",
|
|
|
"data": "网站系统维护升级公告" //网站系统维护升级公告
|
|
|
})
|
|
|
*/
|
|
|
public function notice()
|
|
|
{
|
|
|
$data = Db::name('information')->where('title','网站系统维护升级公告')->value('content');
|
|
|
$this->success('成功', $data);
|
|
|
}
|
|
|
} |
...
|
...
|
|