| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | protected function getUri(Rocket $rocket): string |
||
| 32 | { |
||
| 33 | $config = get_wechat_config($rocket->getParams()); |
||
| 34 | $payload = $rocket->getPayload(); |
||
| 35 | |||
| 36 | if (Pay::MODE_SERVICE !== $config->get('mode', Pay::MODE_NORMAL)) { |
||
| 37 | throw new InvalidParamsException(Exception::METHOD_NOT_SUPPORTED); |
||
| 38 | } |
||
| 39 | |||
| 40 | return 'v3/profitsharing/merchant-configs/'. |
||
| 41 | $payload->get('sub_mchid', $config->get('sub_mch_id', '')); |
||
| 42 | } |
||
| 44 |