作者 lyh

gx

... ... @@ -52,17 +52,13 @@ class InquiryController extends BaseController
$phoneInfo = (new PhoneData())->read(['phone'=>$v['phone']]);
if($phoneInfo === false){
$url = 'https://fob.ai.cc/api/mobile_verify_data/'.$v['phone'];
$data = http_get($url,false);
if($this->user['project_id'] == 1178){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($url, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
}
$data = http_get($url);
$param = [
'phone'=>$v['phone'],
'data'=>$data
'data'=>json_encode($data,true)
];
(new PhoneData())->addReturnId($param);
$v['phone_data'] = json_decode($data);
$v['phone_data'] = $data;
}else{
$v['phone_data'] = json_decode($phoneInfo['data']);
}
... ...