wesmiler 2 mesi fa
parent
commit
5cf0f9e317
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Services/MpService.php

+ 1 - 1
app/Services/MpService.php

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