正在显示
1 个修改的文件
包含
19 行增加
和
1 行删除
@@ -9,13 +9,14 @@ use app\common\model\Attachment; | @@ -9,13 +9,14 @@ use app\common\model\Attachment; | ||
9 | use app\common\model\Version; | 9 | use app\common\model\Version; |
10 | use fast\Random; | 10 | use fast\Random; |
11 | use think\Config; | 11 | use think\Config; |
12 | +use think\Db; | ||
12 | 13 | ||
13 | /** | 14 | /** |
14 | * 公共接口 | 15 | * 公共接口 |
15 | */ | 16 | */ |
16 | class Common extends Api | 17 | class Common extends Api |
17 | { | 18 | { |
18 | - protected $noNeedLogin = ['init','upload','upload_base64','base64_image_content']; | 19 | + protected $noNeedLogin = ['init','upload','upload_base64','base64_image_content','notice']; |
19 | protected $noNeedRight = '*'; | 20 | protected $noNeedRight = '*'; |
20 | 21 | ||
21 | /** | 22 | /** |
@@ -288,4 +289,21 @@ class Common extends Api | @@ -288,4 +289,21 @@ class Common extends Api | ||
288 | return false; | 289 | return false; |
289 | } | 290 | } |
290 | } | 291 | } |
292 | + | ||
293 | + /** | ||
294 | + * @ApiTitle (网站系统维护升级公告) | ||
295 | + * @ApiSummary (网站系统维护升级公告) | ||
296 | + * @ApiMethod (POST) | ||
297 | + * @ApiReturn({ | ||
298 | + "code": 1, | ||
299 | + "msg": "成功", | ||
300 | + "time": "1599017563", | ||
301 | + "data": "网站系统维护升级公告" //网站系统维护升级公告 | ||
302 | + }) | ||
303 | + */ | ||
304 | + public function notice() | ||
305 | + { | ||
306 | + $data = Db::name('information')->where('title','网站系统维护升级公告')->value('content'); | ||
307 | + $this->success('成功', $data); | ||
308 | + } | ||
291 | } | 309 | } |
-
请 注册 或 登录 后发表评论