GoogleCodeCountry.php
645 字节
<?php
/**
* @remark :
* @name :GoogleCodeCountry.php
* @author :lyh
* @method :post
* @time :2025/4/3 10:13
*/
namespace App\Models\GoogleSearch;
use App\Models\Base;
class GoogleCodeCountry extends Base
{
protected $table = 'gl_google_code_country';
/**
* @remark :获取国家中文
* @name :getCodeCountry
* @author :lyh
* @method :post
* @time :2025/4/3 10:26
*/
public function getCodeCountry($code){
$info = $this->read(['code'=>$code],['zh_country']);
if($info !== false){
return $info['zh_country'];
}
return '未知国家';
}
}