|
|
@@ -385,7 +385,7 @@ class MpService extends BaseService
|
|
|
}
|
|
|
|
|
|
$cacheKey = "caches:mpApp:mp_{$this->mpAppid}:";
|
|
|
- $url = sprintf($this->apiUrls[$apiName], $this->mpAppid, $this->mpAppSecret);
|
|
|
+ $url = sprintf($this->apiUrls[$apiName], $token);
|
|
|
$result = httpRequest($url,$data?json_encode($data,256):'', $requestType,'',5);
|
|
|
$this->saveLog($cacheKey."{$apiName}:request", ['url'=>$url,'data'=>$data,'result'=>$result,'date'=>date('Y-m-d H:i:s')]);
|
|
|
return $result;
|