Răsfoiți Sursa

Updated public

north 7 ani în urmă
părinte
comite
4d5c13e426

+ 0 - 1
www/protected/modules/j/controllers/WebController.php

@@ -13,7 +13,6 @@ class WebController extends JBaseController {
 		if($code && $state){
             $wxConfig = Yii::app()->params['wxJgConfig'];
             $accessInfo = CommonWeixin::getAccessInfo($code,$wxConfig['appId'],$wxConfig['appSecret']);
-			var_dump($accessInfo);exit;
 			$userId = '';
 			if (!isset($accessInfo['errcode']) && $state == 'yiguanjia') {
 				$appToken = md5(substr($accessInfo['openid'],2));

+ 0 - 2
www/protected/modules/j/views/web/index.php

@@ -58,8 +58,6 @@
       console.log(userID);
       console.log(appToken);
       var uri = location.href;
-      console.log(uri,uri.indexOf('state=yiguanjia'),uri.indexOf('state=yiguanjia') > -1 , userID, appToken);
-      return ;
       if (!userID || !appToken) {
         localStorage.clear();
         location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=j/web/wxIndex'; ?>';