| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function getData() |
||
| 10 | { |
||
| 11 | $token = new TokenRequest($this->httpClient, $this->httpRequest); |
||
| 12 | $token->initialize($this->getParameters()); |
||
| 13 | $tokenData = $token->getToken(); |
||
| 14 | $this->setToken($tokenData['AuthCode']); |
||
| 15 | $this->setTransactionReference($tokenData['TradeSeq']); |
||
| 16 | |||
| 17 | return [ |
||
| 18 | // 厂商是否自定义充值页面 |
||
| 19 | 'customPage' => ($tokenData['InGameSaveType'] == 1) ? true : false |
||
| 20 | ]; |
||
| 30 | } |