Bläddra i källkod

效果图小程序链接地址更新

eganwu 1 år sedan
förälder
incheckning
dfd31e3565

+ 4 - 4
src/custom/restcontroller/webmanage/saletool/sharematerial/Renderings.java

@@ -1,6 +1,7 @@
 package restcontroller.webmanage.saletool.sharematerial;
 
 import beans.attachment.Attachment;
+import beans.parameter.Parameter;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import common.Controller;
@@ -74,7 +75,7 @@ public class Renderings extends Controller {
         return detail();
     }
 
-    @API(title = "效果图详情", apiversion = R.ID20240415164302.v1.class,accesstoken = false)
+    @API(title = "效果图详情", apiversion = R.ID20240415164302.v1.class, accesstoken = false)
     public String detail() throws YosException {
         Long sat_sharematerialid = content.getLongValue("sat_sharematerialid");
         String ownertable = "sat_sharematerial";
@@ -88,11 +89,10 @@ public class Renderings extends Controller {
         Rows rows = querySQ.query();
         Row detailRow = rows.isNotEmpty() ? rows.get(0) : new Row();
 
-
         Rows attRows = getAttachmentUrl("sat_sharematerial", sat_sharematerialid);
         detailRow.put("attinfos", attRows);
         detailRow.putIfAbsent("checkdate", "");
-        detailRow.put("appleturl", "xxx/pages/product/ctw/share?id=" + sat_sharematerialid);
+        detailRow.put("appleturl", Parameter.get("CaseImgsUrl") + sat_sharematerialid);
         if (StringUtils.isBlank(detailRow.getString("panoramaurl"))) {
             detailRow.put("ispanorama", 0);
         } else {
@@ -231,7 +231,7 @@ public class Renderings extends Controller {
             } else {
                 row.put("ispanorama", 1);
             }
-            row.put("appleturl", "xxx/pages/product/ctw/share?id=" + row.getString("sat_sharematerialid"));
+            row.put("appleturl", Parameter.get("CaseImgsUrl") + row.getString("sat_sharematerialid"));
         }