|
@@ -1134,10 +1134,14 @@ class Wechat
|
|
|
}
|
|
|
|
|
|
$authname = 'wechat_access_token'.$appid;
|
|
|
- if ($rs = $this->getCache($authname)) {
|
|
|
- $this->access_token = $rs;
|
|
|
- return $rs;
|
|
|
- }
|
|
|
+
|
|
|
+ if ($rs = $this->getCache($authname)) {
|
|
|
+ $this->access_token = $rs;
|
|
|
+ return $rs;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
$result = $this->http_get(self::API_URL_PREFIX.self::AUTH_URL.'appid='.$appid.'&secret='.$appsecret);
|
|
|
if ($result)
|