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