|
...
|
...
|
@@ -212,10 +212,29 @@ class InquiryLogic extends BaseLogic |
|
|
|
'country_code'=>$data['country_code'] ?? '',
|
|
|
|
'phone_region'=>$data['phone_region'] ?? '',
|
|
|
|
];
|
|
|
|
if(!empty($param['phone_region'])){
|
|
|
|
$param['country'] = Translate::tran($this->param['phone_region'], 'zh') ?? '';
|
|
|
|
}
|
|
|
|
(new PhoneData())->addReturnId($param);
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :翻译国家
|
|
|
|
* @name :tranCountry
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/11 14:11
|
|
|
|
*/
|
|
|
|
public function tranCountry(){
|
|
|
|
$country = Translate::tran($this->param['phone_region'], 'zh') ?? '';
|
|
|
|
if(!empty($country)){
|
|
|
|
$phoneDataModel = new PhoneData();
|
|
|
|
$phoneDataModel->edit(['country'=>$country],['phone_region'=>$this->param['phone_region']]);
|
|
|
|
}
|
|
|
|
return $this->success(['country'=>$country]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|