Browse Source

up - h5 确认报价地址修改为新部署地址

liugc 10 tháng trước cách đây
mục cha
commit
99f6f0a9ac
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/adminapi/logic/works/ServiceWorkLogic.php

+ 2 - 1
app/adminapi/logic/works/ServiceWorkLogic.php

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