|
@@ -1164,11 +1164,12 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
}
|
|
}
|
|
|
$encryptedData = encrypt($params['work_sn'], \think\facade\Config::get('project.work_sn_key'));
|
|
$encryptedData = encrypt($params['work_sn'], \think\facade\Config::get('project.work_sn_key'));
|
|
|
$user_website = \think\facade\Config::get('project.user_website');
|
|
$user_website = \think\facade\Config::get('project.user_website');
|
|
|
|
|
+ $quoted_price = \think\facade\Config::get('project.quoted_price')?:$user_website.'pages/quoted_price';
|
|
|
$type = $params['type']??1;
|
|
$type = $params['type']??1;
|
|
|
if($type == 1){
|
|
if($type == 1){
|
|
|
$user_website .= '?code='.$encryptedData;
|
|
$user_website .= '?code='.$encryptedData;
|
|
|
}elseif($type == 2){
|
|
}elseif($type == 2){
|
|
|
- $user_website .= 'pages/quoted_price?code='.$encryptedData;
|
|
|
|
|
|
|
+ $user_website = $quoted_price.'?code='.$encryptedData;
|
|
|
}
|
|
}
|
|
|
return ['url'=>$user_website];
|
|
return ['url'=>$user_website];
|
|
|
}catch (\Exception $e) {
|
|
}catch (\Exception $e) {
|