|
@@ -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'];
|