Prechádzať zdrojové kódy

wesmiler 报恩寺项目提交

wesmiler 4 rokov pred
rodič
commit
cde008b930
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      app/Services/CardService.php

+ 2 - 2
app/Services/CardService.php

@@ -189,10 +189,10 @@ class CardService extends BaseService
         // 充值卡接口处理
         $errorKey = "caches:cards:recharge:{$userId}";
         $dataStr = implode('&', $dataStr);
-        $headers = ["Content-Type:application/x-www-form-urlencoded; charset=UTF-8"];
+//        $headers = ["Content-Type:application/x-www-form-urlencoded; charset=UTF-8"];
         $apiUrl = ConfigService::make()->getConfigByCode('gd_api_url').'/ICcontrol.ashx';
         RedisService::set($errorKey.':request', ['url'=> $apiUrl,'data'=> $params], 3600);
-        $result = httpHeaderRequest($apiUrl, $dataStr,'post',$headers,'text',3);
+        $result = httpHeaderRequest($apiUrl, $dataStr,'post',[],'text',3);
         RedisService::set($errorKey.':result', ['result'=>$result], 3600);
         if($result !== 0){
             \DB::rollBack();