Explorar el Código

跨境商品支付接入

kevin hace 1 año
padre
commit
206eb4ca4e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      common/models/forms/ApproachOrderForm.php

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

@@ -182,7 +182,6 @@ class ApproachOrderForm extends Model
     public function isStatus($attribute){
     public function isStatus($attribute){
         if($this->type && !in_array($this->type, \Yii::$app->params['orderStatus'])){
         if($this->type && !in_array($this->type, \Yii::$app->params['orderStatus'])){
             $this->addError($attribute, '订单状态类型错误');
             $this->addError($attribute, '订单状态类型错误');
-            return ;
         }
         }
     }
     }
 
 
@@ -234,6 +233,8 @@ class ApproachOrderForm extends Model
 
 
     public function verifyPayUPOP(): ?bool
     public function verifyPayUPOP(): ?bool
     {
     {
+        LoggerTool::info([$this->sn, $this->status, $this->note]);
+
         if (!$this->validate()) {
         if (!$this->validate()) {
             LoggerTool::error(['UPOP - webhook: (validate).']);
             LoggerTool::error(['UPOP - webhook: (validate).']);
             return null;
             return null;