@@ -38,7 +38,7 @@ |
||
| 38 | 38 | try { |
| 39 | 39 | $this->validate(); |
| 40 | 40 | $data = $this->body; |
| 41 | - $gateway = $this->config['gateway'] . $this->api; |
|
| 41 | + $gateway = $this->config['gateway'] . $this->api; |
|
| 42 | 42 | $data = json_encode($data); |
| 43 | 43 | $sign = hash('sha256', $data); |
| 44 | 44 | $method = $this->method; |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | * 必传的值 |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq','merNo']; |
|
| 27 | + protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'merNo']; |
|
| 28 | 28 | |
| 29 | 29 | } |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | * 必传的值 |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq','ums_reg_id']; |
|
| 27 | + protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'ums_reg_id']; |
|
| 28 | 28 | |
| 29 | 29 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | try { |
| 39 | 39 | $this->validate(); |
| 40 | 40 | $data = $this->body; |
| 41 | - $gateway = $this->config['gateway'] . $this->api; |
|
| 41 | + $gateway = $this->config['gateway'] . $this->api; |
|
| 42 | 42 | $data = json_encode($data); |
| 43 | 43 | $sign = hash('sha256', $data); |
| 44 | 44 | $method = $this->method; |
@@ -22,5 +22,5 @@ |
||
| 22 | 22 | * 必传的值 |
| 23 | 23 | * @var array |
| 24 | 24 | */ |
| 25 | - protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid','instMid']; |
|
| 25 | + protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'instMid']; |
|
| 26 | 26 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | $config = include_once './Config/Config.php'; |
| 9 | 9 | |
| 10 | 10 | $data = [ |
| 11 | - 'request_date' => date('YmdHis'),//请求时间 |
|
| 11 | + 'request_date' => date('YmdHis'), //请求时间 |
|
| 12 | 12 | 'ums_reg_id'=>'20181218161925001674', |
| 13 | 13 | 'request_seq' => uniqid(), |
| 14 | 14 | ]; |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | 'gateway' => [ |
| 5 | - 'default' => 'https://api-mop.chinaums.com',// 默认正式网关 |
|
| 6 | - 'wh_open' => 'https://api-mop-wh.open.chinaums.com',// 正式网关 |
|
| 7 | - 'sandbox' => 'https://test-api-open.chinaums.com',// 沙箱网关 |
|
| 5 | + 'default' => 'https://api-mop.chinaums.com', // 默认正式网关 |
|
| 6 | + 'wh_open' => 'https://api-mop-wh.open.chinaums.com', // 正式网关 |
|
| 7 | + 'sandbox' => 'https://test-api-open.chinaums.com', // 沙箱网关 |
|
| 8 | 8 | ], |
| 9 | - 'mid' => '',// 商户号 |
|
| 10 | - 'tid' => '',// 终端号 |
|
| 11 | - 'appid' => '',// APPID |
|
| 12 | - 'appkey' => '',// KEY |
|
| 13 | - 'sandbox' => false,// 是否开启沙箱 |
|
| 9 | + 'mid' => '', // 商户号 |
|
| 10 | + 'tid' => '', // 终端号 |
|
| 11 | + 'appid' => '', // APPID |
|
| 12 | + 'appkey' => '', // KEY |
|
| 13 | + 'sandbox' => false, // 是否开启沙箱 |
|
| 14 | 14 | ]; |
@@ -24,5 +24,5 @@ |
||
| 24 | 24 | * 必传的值 |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'subAppId', 'subOpenId', 'tradeType','instMid']; |
|
| 27 | + protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'subAppId', 'subOpenId', 'tradeType', 'instMid']; |
|
| 28 | 28 | } |
@@ -24,5 +24,5 @@ |
||
| 24 | 24 | * 必传的值 |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'subAppId', 'subOpenId', 'tradeType','instMid']; |
|
| 27 | + protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'subAppId', 'subOpenId', 'tradeType', 'instMid']; |
|
| 28 | 28 | } |