作者 何书鹏
1 个管道 的构建 失败 耗费 4 秒

网站系统维护升级公告接口

... ... @@ -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);
}
}
... ...