Преглед изворни кода

跨境商品复查api修改

kevin_zhangl пре 2 година
родитељ
комит
692fe93ae6
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12 0
      frontendApi/modules/v1/controllers/ShopController.php

+ 12 - 0
frontendApi/modules/v1/controllers/ShopController.php

@@ -467,13 +467,25 @@ class ShopController extends BaseController {
                         $message = '(ReQueryIPay88Payment). orderSN{%s} 00: Successful payment';
                         break;
                     case 'Invalid parameters':
+                        ApproachOrder::updateAll(
+                            ['STATUS' => \Yii::$app->params['orderStatus']['failPaid']['value'], 'REMARK' => 'Invalid parameters: Parameters pass in incorrect'],
+                            'SN=:SN', [':SN' => $order['SN']]
+                        );
                         $message = '(ReQueryIPay88Payment). orderSN{%s} Invalid parameters: Parameters pass in incorrect';
                         break;
                     case 'Record not found':
+                        ApproachOrder::updateAll(
+                            ['STATUS' => \Yii::$app->params['orderStatus']['failPaid']['value'], 'REMARK' => 'Record not found: Cannot found the record'],
+                            'SN=:SN', [':SN' => $order['SN']]
+                        );
                         $message = '(ReQueryIPay88Payment). orderSN{%s} Record not found: Cannot found the record';
                         break;
                     case 'Incorrect amount':
                         $message = '(ReQueryIPay88Payment). orderSN{%s} Incorrect amount: Amount different';
+                        ApproachOrder::updateAll(
+                            ['STATUS' => \Yii::$app->params['orderStatus']['failPaid']['value'], 'REMARK' => 'Incorrect amount: Amount different'],
+                            'SN=:SN', [':SN' => $order['SN']]
+                        );
                         break;
                     case 'Payment fail':
                         ApproachOrder::updateAll(