Browse Source

feat():授权

geek 4 years ago
parent
commit
0b95ba7f6a

+ 1 - 1
application/common/service/CommonService.php

@@ -36,6 +36,6 @@ class CommonService {
 
     public static function getRedirectUrl($channelId) {
         $data = self::getSetData($channelId);
-        return $data['redirct_url'];
+        return $data['auth_redirct_url'];
     }
 }

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

@@ -20,9 +20,6 @@ class Index {
         if (empty($channelId)){
             throw new ApiException('渠道id不为空');
         }
-        var_dump(input());
-        var_dump(Session::get('wxId'));
-        die();
         $data = CommonService::getSetData($channelId);
         if (empty(Session::get('wxId'))){
             Session::set('visitorId','');