|
|
@@ -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;
|
|
|
}
|