Explorar o código

跨境商品支付回调bugfix

kevin_zhangl %!s(int64=2) %!d(string=hai) anos
pai
achega
17ef7ccb08
Modificáronse 1 ficheiros con 10 adicións e 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();
         $parentValidate = parent::beforeValidate();
         if ($this->sn) {
         if ($this->sn) {
             $this->_model = ApproachOrder::find()->where('SN=:SN', [':SN' => $this->sn])->one();
             $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;
         return $parentValidate;
     }
     }