| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | protected function getInvokeConfig(Rocket $rocket, string $prepayId): Config |
||
| 20 | { |
||
| 21 | $config = new Config([ |
||
| 22 | 'appid' => $this->getAppid($rocket), |
||
| 23 | 'partnerid' => get_wechat_config($rocket->getParams())->get('mch_id'), |
||
| 24 | 'prepayid' => $prepayId, |
||
| 25 | 'package' => 'Sign=WXPay', |
||
| 26 | 'noncestr' => Str::random(32), |
||
| 27 | 'timestamp' => time().'', |
||
| 28 | ]); |
||
| 29 | |||
| 30 | $config->set('sign', $this->getSign($config, $rocket->getParams())); |
||
| 31 | |||
| 32 | return $config; |
||
| 33 | } |
||
| 42 |