You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Internal;
|
|
|
|
use App\Http\Controllers\API\AspNetZhuanController;
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class PersonController extends Controller
|
|
{
|
|
public function GetHzidAndGhzid(){
|
|
|
|
$id_number=request('id_number');
|
|
$key=request('key');
|
|
if($key <>"ddXPpBrM3C93PHFdWDXbMX2vQ2AJQFFy"){
|
|
return \Yz::echoError1('无权访问');
|
|
}
|
|
$person=DB::table('web_user_person')->where(['id_number'=>$id_number,'is_del'=>0])->first();
|
|
if($person){
|
|
$data = [
|
|
"ghzid" => $person->ghzid,
|
|
"yyid" => "6",
|
|
];
|
|
$hzid="";
|
|
$dnet = new AspNetZhuanController();
|
|
$res = $dnet->GetHzid($data);
|
|
if(isset($res['hzid'])){
|
|
$hzid=$res['hzid'];
|
|
}
|
|
return \Yz::Return(true,"查询完成",['hzid'=>$hzid,'ghzid'=>$person->ghzid]);
|
|
}else{
|
|
return \Yz::echoError1('该身份证号不存在');
|
|
}
|
|
}
|
|
}
|