版权信息修改

This commit is contained in:
2025-07-21 09:45:07 +08:00
parent 1ccaced113
commit fa4ade4b35
4 changed files with 12 additions and 32 deletions
+10 -10
View File
@@ -47,17 +47,17 @@ class AreaController
{
$list = RedisHelper::get("rpc_country");
$list = null;
if(!$list){
$res = HttpClient::get(config('const.rpc_domain') . '/country/all');
if ($res['code'] != 200 && $res['data']['code'] != 0){
Log::info('register_rpc',$res);
return Util::fail($res, trans('register_fail'));
}
$list = $res['data']['data']['data'];
RedisHelper::set("rpc_country", $list, 600);
}
// if(!$list){
// $res = HttpClient::get(config('const.rpc_domain') . '/country/all');
// if ($res['code'] != 200 && $res['data']['code'] != 0){
// Log::info('register_rpc',$res);
// return Util::fail($res, trans('register_fail'));
// }
// $list = $res['data']['data']['data'];
// RedisHelper::set("rpc_country", $list, 600);
// }
// $list = Country::get()->toArray();
$list = Country::get()->toArray();
$language = 'en_addr';
if($request->user['language'] == 'zh_CN'){
$language = 'cn_addr';