geek преди 4 години
родител
ревизия
c34ed5df17
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 0 1
      application/index/controller/Setting.php
  2. 4 0
      application/index/controller/User.php

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

@@ -44,7 +44,6 @@ 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)]);
     }

+ 4 - 0
application/index/controller/User.php

@@ -29,4 +29,8 @@ class User extends BaseController {
         Session::set('wxId',input('unionid'));
         header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
     }
+
+    public function clearSession() {
+        Session::clear();
+    }
 }