Browse Source

MyCommentController

DengTao 8 năm trước cách đây
mục cha
commit
bc92cc94f9

+ 1 - 3
www/protected/components/QyWechat.php

@@ -1448,11 +1448,9 @@ class QyWechat
 	public function updateUser($data){
 	    if (!$this->access_token && !$this->checkAuth()) return false;
 	    $result = $this->http_post(self::API_URL_PREFIX.self::USER_UPDATE_URL.'access_token='.$this->access_token,self::json_encode($data));
-	    var_dump($result);
-	     if ($result)
+	    if ($result)
 	    {
 	        $json = json_decode($result,true);
-            var_dump($json);exit;
 	        if (!$json || !empty($json['errcode']) || $json['errcode']!=0) {
 	            $this->errCode = $json['errcode'];
 	            $this->errMsg = $json['errmsg'];

+ 0 - 3
www/protected/modules/o2o/controllers/TechController.php

@@ -262,16 +262,13 @@ class TechController extends AdminController {
         if ($wechat->checkAuth($option['appid'], $secret)) {
             // 检查用户是否存在
             $weixin_userInfo = $wechat->getUserInfo($weixin_userid);
-            var_dump($weixin_userInfo);
             if ($weixin_userInfo == false) {
                 $result = $wechat->createUser($weixin_user_data);
-                var_dump($result);
                 if ($result['errmsg'] != 'created') {
                     CommonFn::requestAjax(false, '微信验证失败1: '.$result['errmsg'], []);
                 }
             } else {
                 $result = $wechat->updateUser($weixin_user_data);
-                var_dump($result['errmsg']);exit;
                 if ($result['errmsg'] != 'updated') {
                     CommonFn::requestAjax(false, '微信验证失败2: '.$result['errmsg'], []);
                 }