| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | 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 | $config = get_wechat_config($rocket->getParams()); |
||
| 35 | $url = parent::getPartnerUri($rocket); |
||
| 36 | |||
| 37 | return $url.'?sub_mchid='.($rocket->getPayload()->get('sub_mchid', $config->get('sub_mch_id'))); |
||
| 38 | } |
||
| 39 | |||
| 40 | protected function getMethod(): string |
||
| 43 | } |
||
| 44 | |||
| 45 | protected function doSomething(Rocket $rocket): void |
||
| 48 | } |
||
| 49 | } |
||
| 50 |