| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CreatePlugin extends GeneralPlugin |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @throws \Yansongda\Pay\Exception\ContainerDependencyException |
||
| 14 | * @throws \Yansongda\Pay\Exception\ContainerException |
||
| 15 | * @throws \Yansongda\Pay\Exception\ServiceNotFoundException |
||
| 16 | */ |
||
| 17 | protected function doSomething(Rocket $rocket): void |
||
| 18 | { |
||
| 19 | $config = get_wechat_config($rocket->getParams()); |
||
| 20 | |||
| 21 | $wechatId = [ |
||
| 22 | 'appid' => $config->get('mp_app_id'), |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $rocket->mergePayload($wechatId); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function getUri(Rocket $rocket): string |
||
| 31 | } |
||
| 32 | } |
||
| 33 |