kevin_zhangl 3 年之前
父节点
当前提交
92d55abcf3
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      common/models/forms/ApproachOrderForm.php
  2. 1 1
      common/models/forms/WithdrawForm.php

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

@@ -184,7 +184,7 @@ class ApproachOrderForm extends Model
      */
     public function validatePassword($attribute, $params) {
         if (!User::validatePayPassword(\Yii::$app->user->id, $this->payPassword)) {
-            $this->addError($attribute, '支付密码不正确');
+            $this->addError($attribute, 'The payment password is incorrect');//支付密码不正确
         }
     }
 

+ 1 - 1
common/models/forms/WithdrawForm.php

@@ -196,7 +196,7 @@ class WithdrawForm extends Model {
      */
     public function validatePassword($attribute, $params) {
         if (!User::validatePayPassword($this->_userId, $this->payPassword)) {
-            $this->addError($attribute, '支付密码不正确');
+            $this->addError($attribute, 'The payment password is incorrect');//支付密码不正确
         }
     }