询单url调整
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user