Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
6 | class PurchaseRequest extends AbstractRequest |
||
7 | { |
||
8 | |||
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 | ]; |
||
21 | } |
||
22 | |||
23 | |||
24 | public function sendData($parameters) |
||
28 | } |
||
29 | |||
30 | } |