|
|
@@ -188,7 +188,7 @@ class WechatService extends BaseService
|
|
|
$code= request()->get('code','');
|
|
|
$appid = WechatService::getConfigs('wx_appid');
|
|
|
$appsecret = WechatService::getConfigs('wx_appsecret');
|
|
|
- $cacheKey = 'caches:tokens:access_temp_' . $appid . '_' . $appsecret;
|
|
|
+ $cacheKey = 'caches:tokens:access_temp:' . $code;
|
|
|
$tokenData = RedisService::get($cacheKey);
|
|
|
if (empty($tokenData) || $refresh) {
|
|
|
$url = sprintf(self::$apiUrl['tempToken'], $code, $appid, $appsecret);
|