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