|
|
@@ -147,6 +147,7 @@ class ApproachOrderForm extends Model
|
|
|
$parentValidate = parent::beforeValidate();
|
|
|
if ($this->sn) {
|
|
|
$this->_model = ApproachOrder::findOne(['SN'=>$this->sn]);
|
|
|
+ LoggerTool::debug($this->_model);
|
|
|
if (!$this->_model){
|
|
|
$this->addError('sn', '订单不存在');
|
|
|
return false;
|
|
|
@@ -226,6 +227,7 @@ class ApproachOrderForm extends Model
|
|
|
public function verifyPayOnline(): ?ApproachOrder
|
|
|
{
|
|
|
if (!$this->validate()) {
|
|
|
+ LoggerTool::debug([$this->sn, $this->note]);
|
|
|
return null;
|
|
|
}
|
|
|
|