| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class FindRefundPlugin extends GeneralPlugin |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @throws \Yansongda\Pay\Exception\InvalidParamsException |
||
| 16 | */ |
||
| 17 | protected function getUri(Rocket $rocket): string |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @throws \Yansongda\Pay\Exception\ContainerException |
||
| 30 | * @throws \Yansongda\Pay\Exception\ServiceNotFoundException |
||
| 31 | */ |
||
| 32 | protected function getPartnerUri(Rocket $rocket): string |
||
| 33 | { |
||
| 34 | $params = $rocket->getParams(); |
||
| 35 | $config = get_wechat_config($params); |
||
| 36 | $url = parent::getPartnerUri($rocket); |
||
| 37 | |||
| 38 | return $url.'?sub_mchid='.($params['sub_mchid'] ?? $config->get('sub_mch_id')); |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function getMethod(): string |
||
| 44 | } |
||
| 45 | |||
| 46 | protected function doSomething(Rocket $rocket): void |
||
| 49 | } |
||
| 50 | } |
||
| 51 |