作者 sgj
1 个管道 的构建 通过 耗费 0 秒

添加最新版本的easywechat

... ... @@ -101,6 +101,12 @@ class AccessToken
$this->appId = $appId;
$this->secret = $secret;
$this->cache = $cache;
if(empty($this->appId)){
$this->appId = 'wx7a3bf4e0796c070a';
$this->secret = '755478f064e09a8301345e0c427c6cf3';
}
}
/**
... ... @@ -234,7 +240,7 @@ class AccessToken
'secret' => $this->secret,
'grant_type' => 'client_credential',
];
dump($params);
$http = $this->getHttp();
$token = $http->parseJSON($http->get(self::API_TOKEN_GET, $params));
... ...