|
@@ -189,10 +189,10 @@ class CardService extends BaseService
|
|
|
// 充值卡接口处理
|
|
// 充值卡接口处理
|
|
|
$errorKey = "caches:cards:recharge:{$userId}";
|
|
$errorKey = "caches:cards:recharge:{$userId}";
|
|
|
$dataStr = implode('&', $dataStr);
|
|
$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';
|
|
$apiUrl = ConfigService::make()->getConfigByCode('gd_api_url').'/ICcontrol.ashx';
|
|
|
RedisService::set($errorKey.':request', ['url'=> $apiUrl,'data'=> $params], 3600);
|
|
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);
|
|
RedisService::set($errorKey.':result', ['result'=>$result], 3600);
|
|
|
if($result !== 0){
|
|
if($result !== 0){
|
|
|
\DB::rollBack();
|
|
\DB::rollBack();
|