Parcourir la source

feat():授权

geek il y a 4 ans
Parent
commit
15b50f4f23

+ 1 - 1
application/index/BaseController.php

@@ -72,7 +72,7 @@ abstract class BaseController
 //            $this->userId = $decodeToken['userId'];
         }
         Session::init([
-            'prefix'         => 'module',
+            'prefix'         => '',
             'type'           => '',
             'auto_start'     => true,
         ]);

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

@@ -14,8 +14,6 @@ class Index {
     public function index() {
         $visitorId = input('visitorId');
         $notifyUrl = input('notify_url');
-        var_dump(session('unionid'));
-        die();
         if (empty(session('unionid'))){
             header("Location:".CommonService::getAuthUrl());
             return;