Explorar o código

跨境商品支付接入

kevin %!s(int64=2) %!d(string=hai) anos
pai
achega
c772dde42d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      common/models/forms/ApproachOrderForm.php

+ 3 - 1
common/models/forms/ApproachOrderForm.php

@@ -129,13 +129,15 @@ class ApproachOrderForm extends Model
         $parentValidate = parent::beforeValidate();
         if ($this->sn) {
             $this->_model = ApproachOrder::findOne(['SN' => $this->sn]);
+            LoggerTool::error(['UPOP - webhook: (beforeValidate 2).', $this->_model]);
             if (!ApproachOrder::findOneAsArray('SN=:SN', [':SN' => $this->sn])){
+                LoggerTool::error(['UPOP - webhook: (beforeValidate 3).', $this->_model]);
                 $this->addError('sn', '订单不存在');
                 return false;
             }
         }
 
-        LoggerTool::error(['UPOP - webhook: (beforeValidate 2).']);
+        LoggerTool::error(['UPOP - webhook: (beforeValidate 4).']);
 
         return $parentValidate;
     }