stanley-king 4 meses atrás
pai
commit
b47c016d22
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      helper/refill/order.php

+ 2 - 1
helper/refill/order.php

@@ -401,7 +401,6 @@ class order
                 $this->mFirstCommit = true;
                 [$validate, $card_type, $regin_no, $isTransfer, $card_state, $black] = mtopcard\valid_phone($this->mCardNo);
 
-                $this->mIsValidate = $validate;
                 $this->mCardType = $card_type;
                 $this->mRegionNo = $regin_no;
                 $this->mIsTransfer = $isTransfer;
@@ -410,10 +409,12 @@ class order
                 global $config;
                 $no_valid_mchids = $config['neednot_check_card_mchids'] ?? [];
                 if(in_array($mchid,$no_valid_mchids)) {
+                    $this->mIsValidate = true;
                     $this->mCardState = 1;
                     $this->mBlack = false;
                 }
                 else {
+                    $this->mIsValidate = $validate;
                     $this->mCardState = $card_state;
                     $this->mBlack = $black;
                 }