|
|
@@ -125,15 +125,18 @@ class ApproachOrderForm extends Model
|
|
|
*/
|
|
|
public function beforeValidate()
|
|
|
{
|
|
|
+ LoggerTool::error(['UPOP - webhook: (beforeValidate 1).']);
|
|
|
$parentValidate = parent::beforeValidate();
|
|
|
if ($this->sn) {
|
|
|
$this->_model = ApproachOrder::findOne(['SN' => $this->sn]);
|
|
|
- if (!ApproachOrder::findOneAsArray('SN = :SN', [':SN' => $this->sn])){
|
|
|
+ if (!ApproachOrder::findOneAsArray('SN=:SN', [':SN' => $this->sn])){
|
|
|
$this->addError('sn', '订单不存在');
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ LoggerTool::error(['UPOP - webhook: (beforeValidate 2).']);
|
|
|
+
|
|
|
return $parentValidate;
|
|
|
}
|
|
|
|