Selaa lähdekoodia

feat():授权

geek 4 vuotta sitten
vanhempi
commit
ea9673b696

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

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

+ 1 - 3
application/index/controller/User.php

@@ -26,9 +26,7 @@ class User extends BaseController {
             'avatar' => input('avatar'),
             'key'    => md5(input('unionid').CommonService::getSetData($channelId)['channel_auth_code'])
         ];
-        var_dump(input());
-        die();
-//        Session::set('wxId',input('unionid'));
+        Session::set('wxId',input('unionid'));
         header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
     }