Explorar el Código

跨境商品支付回调bugfix

kevin_zhangl hace 2 años
padre
commit
17ef7ccb08
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. 10 10
      common/models/forms/ApproachOrderForm.php

+ 10 - 10
common/models/forms/ApproachOrderForm.php

@@ -147,18 +147,18 @@ class ApproachOrderForm extends Model
         $parentValidate = parent::beforeValidate();
         if ($this->sn) {
             $this->_model = ApproachOrder::find()->where('SN=:SN', [':SN' => $this->sn])->one();
-            if (!$this->_model){
-                $this->addError('sn', '订单不存在. ' . json_encode($this->_model));
-                return false;
-            }
+//            if (!$this->_model){
+//                $this->addError('sn', '订单不存在. ' . json_encode($this->_model));
+//                return false;
+//            }
         }
 
-        if ($this->scenario == 'verifyIPay88'){
-            if ($this->_model->STATUS != \Yii::$app->params['orderStatus']['notPaid']['value']) {
-                $this->addError('sn', '支付方式错误');
-                return false;
-            }
-        }
+//        if ($this->scenario == 'verifyIPay88'){
+//            if ($this->_model->STATUS != \Yii::$app->params['orderStatus']['notPaid']['value']) {
+//                $this->addError('sn', '支付方式错误');
+//                return false;
+//            }
+//        }
 
         return $parentValidate;
     }