kevin_zhangl 2 лет назад
Родитель
Сommit
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(