作者 lyh

geo脚本设置

... ... @@ -43,6 +43,8 @@ class SyncMobile extends Command
$data = $client->request('GET', $url, [
'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号
])->getBody()->getContents();
dd($data);
if(!empty($data)){
$data = json_decode($data, true);
DB::table('gl_mobile')->delete();
$create_time = date('Y-m-d H:i:s');
... ... @@ -53,7 +55,6 @@ class SyncMobile extends Command
];
DB::table('gl_mobile')->insert($param);
}
if(!empty($data)){
$userModel = new User();
try {
$data[] = '13083988828';
... ...
... ... @@ -665,7 +665,7 @@ if (!function_exists('getImageUrl')) {
* @method :post
* @time :2023/7/20 16:46
*/
function getImageUrl($path,$storage_type = 0,$location = 0){
function getImageUrl($path,$storage_type = 0,$location = 0,$image_cdn = 1){
if(is_array($path)){
$url =[];
foreach ($path as $v){
... ... @@ -683,8 +683,11 @@ if (!function_exists('getImageUrl')) {
}
if($location == 0){
$cos = config('filesystems.disks.cos');
if($image_cdn == 0){//v6链接
$cosCdn = $cos['cdn2'];
}else{
$cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
// $cosCdn = 'https://file.globalso.com';//TODO::暂时使用
}
$url = $cosCdn.$path;
}else{
$s3 = config('filesystems.disks.s3');
... ...