@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | public function callback($contents) |
| 48 | 48 | { |
| 49 | - $params = array_map(function ($value) { |
|
| 49 | + $params = array_map(function($value) { |
|
| 50 | 50 | return urldecode($value); |
| 51 | 51 | }, $contents); |
| 52 | 52 | $md5Key = $this->config['md5key']; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | public function __call(string $shortcut, array $params) |
| 28 | 28 | { |
| 29 | - $class = '\\tinymeng\\Chinaums\\Service\\'.__CLASS__.'\\' . Str::studly($shortcut); |
|
| 29 | + $class = '\\tinymeng\\Chinaums\\Service\\' . __CLASS__ . '\\' . Str::studly($shortcut); |
|
| 30 | 30 | $objcet = new $class(); |
| 31 | 31 | $objcet->setConfig($this->config); |
| 32 | 32 | return $objcet; |
@@ -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','pic_list']; |
|
| 27 | + protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'merNo', 'pic_list']; |
|
| 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; |
@@ -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 | } |
@@ -24,5 +24,5 @@ |
||
| 24 | 24 | * 必传的值 |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected $require = ['service', 'accesser_id', 'sign_type', 'request_date','request_seq','mer_no','alter_bank_acct_no','alter_bank_no','pic_list']; |
|
| 27 | + protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'mer_no', 'alter_bank_acct_no', 'alter_bank_no', 'pic_list']; |
|
| 28 | 28 | } |
@@ -52,9 +52,9 @@ |
||
| 52 | 52 | try { |
| 53 | 53 | $this->validate(); |
| 54 | 54 | $data = $this->body; |
| 55 | - $gateway = $this->config['gateway'] . $this->api; |
|
| 55 | + $gateway = $this->config['gateway'] . $this->api; |
|
| 56 | 56 | if (strtoupper($this->platform) == 'PC') { |
| 57 | - $gateway = $this->config['gateway'] . $this->PCapi; |
|
| 57 | + $gateway = $this->config['gateway'] . $this->PCapi; |
|
| 58 | 58 | } |
| 59 | 59 | $data = json_encode($data); |
| 60 | 60 | $sign = hash('sha256', $data); |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | * 必传的值 |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq','areaCode','key']; |
|
| 27 | + protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'areaCode', 'key']; |
|
| 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','mobileNo']; |
|
| 27 | + protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'mobileNo']; |
|
| 28 | 28 | |
| 29 | 29 | } |