소스 검색

feat():授权

geek 4 년 전
부모
커밋
ea9673b696
2개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 4
      application/index/controller/Index.php
  2. 1 3
      application/index/controller/User.php

+ 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));
     }