DengTao 8 жил өмнө
parent
commit
ffbdebeef2

+ 2 - 2
www/protected/modules/common/controllers/ActivityController.php

@@ -24,7 +24,7 @@ class ActivityController extends O2oBaseController  {
         if($code && $state){
         if($code && $state){
             $accessInfo = CommonWeixin::getAccessInfo($code);
             $accessInfo = CommonWeixin::getAccessInfo($code);
             $userId = '';
             $userId = '';
-            echo "1";
+            echo "1";exit;
             if (!isset($accessInfo['errcode']) && $state == 'yiguanjia') {
             if (!isset($accessInfo['errcode']) && $state == 'yiguanjia') {
                 echo "2";
                 echo "2";
                 $appToken = md5(substr($accessInfo['openid'],2));
                 $appToken = md5(substr($accessInfo['openid'],2));
@@ -138,7 +138,7 @@ class ActivityController extends O2oBaseController  {
         }
         }
         $scope = 'snsapi_userinfo';
         $scope = 'snsapi_userinfo';
         $state = 'yiguanjia';
         $state = 'yiguanjia';
-        var_dump($redirectURI);
+        var_dump($redirectURI);exit;
         $codeURI = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $wxConfig['appId'] . '&redirect_uri=' . urlencode($redirectURI) . '&response_type=code&scope=' . $scope . '&state=' . $state . '#wechat_redirect';
         $codeURI = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $wxConfig['appId'] . '&redirect_uri=' . urlencode($redirectURI) . '&response_type=code&scope=' . $scope . '&state=' . $state . '#wechat_redirect';
 
 
         $this->renderpartial('wxIndex', array(
         $this->renderpartial('wxIndex', array(