|
@@ -110,6 +110,7 @@ class card_query
|
|
|
$status = $status_converter($code);
|
|
|
$card_type = $type_checker($extend['isp']);
|
|
|
$region_no = $regin_checker($extend['prov']);
|
|
|
+ Log::record("tencent_query: card_no={$card_no} card_type={$card_type} region_no={$region_no}",Log::DEBUG);
|
|
|
return true;
|
|
|
} else {
|
|
|
Log::record("tencent_valid phone:{$card_no}", Log::DEBUG);
|
|
@@ -129,7 +130,7 @@ class card_query
|
|
|
return [true, $card_type, $region_no, $isTransfer, $status];
|
|
|
}
|
|
|
else {
|
|
|
- return [false, $card_type, -1, false, $status];
|
|
|
+ return [false, $org_type, -1, false, $status];
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -360,20 +361,20 @@ class card_query
|
|
|
[$succ,$result] = $pinfo_getter($card_no);
|
|
|
if($succ) return $result;
|
|
|
|
|
|
- [$succ,$card_type,$region_no,$isTransfer,$status] = $this->tianyan_query($card_no);
|
|
|
- if($succ === false) {
|
|
|
- return [true, $org_type, -1, false, 1, $black];
|
|
|
- }
|
|
|
-
|
|
|
-// [$succ,$card_type,$region_no,$isTransfer,$status] = $this->tencent_query($card_no);
|
|
|
-// if($succ === false)
|
|
|
-// {
|
|
|
-// [$succ,$card_type,$region_no,$isTransfer,$status] = $this->tianyan_query($card_no);
|
|
|
-// if($succ === false) {
|
|
|
-// return [true, $org_type, -1, false, 1];
|
|
|
-// }
|
|
|
+// [$succ,$card_type,$region_no,$isTransfer,$status] = $this->tianyan_query($card_no);
|
|
|
+// if($succ === false) {
|
|
|
+// return [true, $org_type, -1, false, 1, $black];
|
|
|
// }
|
|
|
|
|
|
+ [$succ, $card_type, $region_no, $isTransfer, $status] = $this->tencent_query($card_no);
|
|
|
+ if ($succ === false)
|
|
|
+ {
|
|
|
+ [$succ, $card_type, $region_no, $isTransfer, $status] = $this->tianyan_query($card_no);
|
|
|
+ if ($succ === false) {
|
|
|
+ return [true, $org_type, -1, false, 1, $black];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$validate = $this->validate_checker($status);
|
|
|
$pinfo_updator($card_no,$card_type,$org_type,$region_no,$isTransfer,$status);
|
|
|
|