Browse Source

MyorderController

e 8 years ago
parent
commit
ad3e9413dc
2 changed files with 2 additions and 2 deletions
  1. 0 1
      www/protected/components/O2oApp.php
  2. 2 1
      www/protected/components/QyWechat.php

+ 0 - 1
www/protected/components/O2oApp.php

@@ -60,7 +60,6 @@ class O2oApp {
 
         $wechat = new QyWechat($option);
         $echostr = $wechat->valid(true);
-        var_dump($secret);
         $wechat->checkAuth($option['appid'], $secret);
 
         return $wechat;

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

@@ -886,7 +886,7 @@ class QyWechat
 		    $this->access_token=$token;
 		    return $this->access_token;
 		}
-
+		var_dump($token);
 		$authname = 'qywechat_access_token'.$appid;
 		if ($rs = $this->getCache($authname))  {
 			$this->access_token = $rs;
@@ -894,6 +894,7 @@ class QyWechat
 		}
 
 		$result = $this->http_get(self::API_URL_PREFIX.self::TOKEN_GET_URL.'corpid='.$appid.'&corpsecret='.$appsecret);
+		var_dump($result);
 		if ($result)
 		{
 			$json = json_decode($result,true);