@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $defaults[CURLOPT_SSL_VERIFYHOST] = false; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - curl_setopt_array($ch, (array)$options + $defaults); |
|
| 81 | + curl_setopt_array($ch, (array) $options + $defaults); |
|
| 82 | 82 | $ret = curl_exec($ch); |
| 83 | 83 | $err = curl_error($ch); |
| 84 | 84 | if (false === $ret || !empty($err)) { |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'gateway' => 'https://api-mop.chinaums.com/v1',// 请求网关 |
|
| 5 | - 'sandbox_gateway' => 'https://test-api-open.chinaums.com/v1',// 沙箱网关 |
|
| 6 | - 'mid' => '',// 商户号 |
|
| 7 | - 'tid' => '',// 终端号 |
|
| 8 | - 'appid' => '',// APPID |
|
| 9 | - 'appkey' => '',// KEY |
|
| 10 | - 'sandbox' => false,// 是否开启沙箱 |
|
| 4 | + 'gateway' => 'https://api-mop.chinaums.com/v1', // 请求网关 |
|
| 5 | + 'sandbox_gateway' => 'https://test-api-open.chinaums.com/v1', // 沙箱网关 |
|
| 6 | + 'mid' => '', // 商户号 |
|
| 7 | + 'tid' => '', // 终端号 |
|
| 8 | + 'appid' => '', // APPID |
|
| 9 | + 'appkey' => '', // KEY |
|
| 10 | + 'sandbox' => false, // 是否开启沙箱 |
|
| 11 | 11 | ]; |