@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * @author liuml <[email protected]> |
| 166 | 166 | * @DateTime 2019-04-28 12:09 |
| 167 | 167 | */ |
| 168 | - public function alipayMethod($method, $params = []) |
|
| 168 | + public function alipayMethod($method, $params = [ ]) |
|
| 169 | 169 | { |
| 170 | 170 | $method = Str::studly($method); |
| 171 | 171 | // 组装命名空间 |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @author liuml <[email protected]> |
| 192 | 192 | * @DateTime 2019-04-28 12:09 |
| 193 | 193 | */ |
| 194 | - public function make(string $gateway, $params = []) |
|
| 194 | + public function make(string $gateway, $params = [ ]) |
|
| 195 | 195 | { |
| 196 | 196 | $app = new $gateway(); |
| 197 | 197 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | { |
| 215 | 215 | Support::$config->set('event', [ |
| 216 | 216 | 'driver' => 'Payment', |
| 217 | - 'method' => $method ? : $this->method, |
|
| 217 | + 'method' => $method ?: $this->method, |
|
| 218 | 218 | ]); |
| 219 | 219 | } |
| 220 | 220 | |