|
|
@@ -130,7 +130,9 @@ class API extends AbstractAPI
|
|
|
$order->spbill_create_ip = (Order::NATIVE === $order->trade_type) ? get_server_ip() : get_client_ip();
|
|
|
}
|
|
|
@file_put_contents('quanju2.txt', json_encode($order)."-微信支付失败6\r\n", 8);
|
|
|
- return $this->request($this->wrapApi(self::API_PREPARE_ORDER), $order->all());
|
|
|
+ $as=$this->wrapApi(self::API_PREPARE_ORDER);
|
|
|
+ $sa =$order->all();
|
|
|
+ return $this->request($as, $sa);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -479,15 +481,15 @@ class API extends AbstractAPI
|
|
|
$params['device_info'] = $this->merchant->device_info;
|
|
|
$params['nonce_str'] = uniqid();
|
|
|
$params = array_filter($params);
|
|
|
-
|
|
|
+ @file_put_contents('quanju2.txt', json_encode($this->getSignkey($api))."-微信支付失败9\r\n", 8);
|
|
|
$params['sign'] = generate_sign($params, $this->getSignkey($api), 'md5');
|
|
|
-
|
|
|
+ @file_put_contents('quanju2.txt', json_encode($params)."-微信支付失败7\r\n", 8);
|
|
|
$options = array_merge([
|
|
|
'body' => XML::build($params),
|
|
|
], $options);
|
|
|
|
|
|
$response = $this->getHttp()->request($api, $method, $options);
|
|
|
-
|
|
|
+ @file_put_contents('quanju2.txt', json_encode($response)."-微信支付失败8\r\n", 8);
|
|
|
return $returnResponse ? $response : $this->parseResponse($response);
|
|
|
}
|
|
|
|