wugg 7 månader sedan
förälder
incheckning
5373ca0b7e
1 ändrade filer med 8 tillägg och 4 borttagningar
  1. 8 4
      extend/Wechat.php

+ 8 - 4
extend/Wechat.php

@@ -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)