Test Failed
Push — master ( df8200...cd3d31 )
by Joe
02:39
created
src/Message/NotificationRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
 
11 11
     private $ip = [
12
-        '220.130.127.125',  // MyCard正式服务器IP
12
+        '220.130.127.125', // MyCard正式服务器IP
13 13
         '218.32.37.148'     // MyCard测试服务器IP
14 14
     ];
15 15
 
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
      */
47 47
     private function getReturnParams()
48 48
     {
49
-        $ReturnCode = $this->httpRequest->get('ReturnCode');        // 1 为成功, 其他则为失败. 注意: ReturnCode 为1并不代表交易成功,正确交易结果请参考PayResult
49
+        $ReturnCode = $this->httpRequest->get('ReturnCode'); // 1 为成功, 其他则为失败. 注意: ReturnCode 为1并不代表交易成功,正确交易结果请参考PayResult
50 50
         $ReturnMsg = $this->httpRequest->get('ReturnMsg');
51
-        $PayResult = $this->httpRequest->get('PayResult');          // 交易结果代码 交易成功为 3; 交易失败为 0
52
-        $FacTradeSeq = $this->httpRequest->get('FacTradeSeq');      // 厂商交易序号
51
+        $PayResult = $this->httpRequest->get('PayResult'); // 交易结果代码 交易成功为 3; 交易失败为 0
52
+        $FacTradeSeq = $this->httpRequest->get('FacTradeSeq'); // 厂商交易序号
53 53
         // $PaymentType = $this->httpRequest->get('PaymentType');      // 付费方式
54 54
         // $Amount = $this->httpRequest->get('Amount');
55 55
         // $Currency = $this->httpRequest->get('Currency');
Please login to merge, or discard this patch.
src/Message/NotificationResponse.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@
 block discarded – undo
71 71
         $this->data['raw'] = $fetchResponse->getData();
72 72
         if ($fetchResponse->getData()['PayResult'] != 3) { // 交易成功為3; 交易失敗為0;
73 73
             $this->status = static::STATUS_FAILED;
74
-        }
75
-        else {
74
+        } else {
76 75
             $this->status = static::STATUS_COMPLETED;
77 76
         }
78 77
 
Please login to merge, or discard this patch.
src/Message/TokenRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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() ?: '',
Please login to merge, or discard this patch.