@@ -68,7 +68,7 @@ |
||
| 68 | 68 | { |
| 69 | 69 | // 查询 |
| 70 | 70 | $fetchResponse = $this->request->fetchTransaction($this->token); |
| 71 | - $this->data['raw'] = $fetchResponse->getData(); // 用查询数据覆盖掉通知过来的数据 |
|
| 71 | + $this->data['raw'] = $fetchResponse->getData(); // 用查询数据覆盖掉通知过来的数据 |
|
| 72 | 72 | |
| 73 | 73 | $this->status = static::STATUS_FAILED; |
| 74 | 74 | if ($fetchResponse->getData()['PayResult'] == 3) { // 交易成功為3; 交易失敗為0; |
@@ -79,8 +79,7 @@ |
||
| 79 | 79 | $confirmResponse = $this->request->confirmTransaction(); |
| 80 | 80 | if ($confirmResponse->getData()['ReturnCode'] == 1) { |
| 81 | 81 | $this->data['raw']['confirm'] = true; |
| 82 | - } |
|
| 83 | - else { |
|
| 82 | + } else { |
|
| 84 | 83 | $this->data['raw']['confirm'] = false; |
| 85 | 84 | } |
| 86 | 85 | return $this; |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | 'FacServiceId' => $this->getAppId(), |
| 15 | 15 | 'FacTradeSeq' => $this->getTransactionId(), |
| 16 | 16 | 'TradeType' => $this->getTradeType(), |
| 17 | - 'ServerId' => $this->getServerId() ?: '', // 服务器ID |
|
| 17 | + 'ServerId' => $this->getServerId() ?: '', // 服务器ID |
|
| 18 | 18 | 'CustomerId' => $this->getAccountId() ?: $this->getTransactionId(), // 用户ID |
| 19 | 19 | 'PaymentType' => $this->getPaymentType() ?: '', |
| 20 | 20 | 'ItemCode' => $this->getItemCode() ?: '', |