stanley-king 4 months atrás
parent
commit
644f08983f
3 changed files with 18 additions and 3 deletions
  1. 4 1
      data/config/xyz/refill.ini.php
  2. 13 2
      helper/refill/order.php
  3. 1 0
      helper/vendor/yifutongtax.php

+ 4 - 1
data/config/xyz/refill.ini.php

@@ -45,4 +45,7 @@ $config['third_jumps'] = $third_jumps;
 #风险流水号管理
 $config['risk_official_sn'] = [
     'exclude_stores' => [192, 273, 389, 390, 391, 121, 315]
-];
+];
+
+#不需要检测空号的机构
+$config['neednot_check_card_mchids'] = [10530, 10532];

+ 13 - 2
helper/refill/order.php

@@ -405,8 +405,19 @@ class order
                 $this->mCardType = $card_type;
                 $this->mRegionNo = $regin_no;
                 $this->mIsTransfer = $isTransfer;
-                $this->mCardState = $card_state;
-                $this->mBlack = $black;
+
+                $mchid = $this->mMchid;
+                global $config;
+                $no_valid_mchids = $config['neednot_check_card_mchids'] ?? [];
+                if(in_array($mchid,$no_valid_mchids)) {
+                    $this->mCardState = 1;
+                    $this->mBlack = false;
+                }
+                else {
+                    $this->mCardState = $card_state;
+                    $this->mBlack = $black;
+                }
+
             } else {
                 $this->mFirstCommit = false;
                 $this->mCardType = $params['card_type'];

+ 1 - 0
helper/vendor/yifutongtax.php

@@ -245,6 +245,7 @@ class yifutongtax
 
                             refill\util::write_yifutong_order($mch_order,$val);
                             refill\util::push_add($params);
+                            sleep(1);
                         }
                     }
                 }