瀏覽代碼

feat():授权

geek 4 年之前
父節點
當前提交
5770a69b02
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 0 1
      application/index/controller/Index.php
  2. 2 0
      application/index/controller/Setting.php

+ 0 - 1
application/index/controller/Index.php

@@ -14,7 +14,6 @@ use think\facade\Session;
 class Index {
 
     public function index() {
-
         $visitorId = input('visitorId');
         $notifyUrl = input('notify_url');
         $channelId = input('channelId');

+ 2 - 0
application/index/controller/Setting.php

@@ -11,6 +11,7 @@ use app\common\service\SettingService;
 use app\index\BaseController;
 use app\index\model\SettingModel;
 use app\common\until\Until;
+use think\facade\Session;
 use think\Request;
 
 class Setting extends BaseController {
@@ -43,6 +44,7 @@ class Setting extends BaseController {
      */
     public function read() {
         $model = new SettingModel();
+        Session::clear();
         $data = $model::where(['id' => (int)input('id')])->find();
         Until::output(['info' => Until::modelToArray($data)]);
     }