询单url调整

This commit is contained in:
2025-07-28 18:49:33 +08:00
parent 1a54a55653
commit 22bee76835
4 changed files with 188 additions and 121 deletions
+17 -1
View File
@@ -127,6 +127,22 @@ class InquiryLogService
$data['email'] = trim($data["email"]);
$data['tel'] = trim($data['tel']);
$data['whatsapp'] = trim($data['whatsapp']);
// 将OSS直连地址替换为代理地址
$ossDomain = 'https://vehicle-album.oss-cn-beijing.aliyuncs.com/';
$proxyPath = getenv('MAIN_DOMAIN').'/proxy/ossurl?file=';
$data['content'] = str_replace(
'?Expires=',
'&Expires=',
$data['content']
);
$data['content'] = str_replace(
$ossDomain,
$proxyPath,
$data['content']
);
return $data;
}
@@ -219,7 +235,7 @@ class InquiryLogService
$quality = [
1 => '💛 金牌商机',
2 => '🤍 银牌商机',
3 => '🤍 银牌商机'
3 => '🧡 银牌商机'
];
return $quality[$id];
}