Bläddra i källkod

效果图管理

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

+ 2 - 2
src/custom/restcontroller/webmanage/saletool/sharematerial/LongPicText.java

@@ -93,8 +93,8 @@ public class LongPicText extends Controller {
         Rows attRows = getAttachmentUrl("sat_sharematerial", sat_sharematerialid);
         detailRow.put("attinfos", attRows);
 
-        detailRow.put("shareurl", "/pages/product/ctw/share?id=" + sat_sharematerialid);
-        detailRow.put("noshareurl", "/pages/product/ctw/noshare?id=" + sat_sharematerialid);
+        detailRow.put("shareurl", "xxx/pages/product/ctw/share?id=" + sat_sharematerialid);
+        detailRow.put("noshareurl", "xxx/pages/product/ctw/noshare?id=" + sat_sharematerialid);
 
 
         return getSucReturnObject().setData(detailRow).toString();

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

@@ -5,6 +5,7 @@ import common.Controller;
 import common.YosException;
 import common.annotation.API;
 import common.data.*;
+import org.apache.commons.lang.StringUtils;
 import restcontroller.R;
 
 /**
@@ -82,6 +83,13 @@ public class Renderings extends Controller {
 
         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);
+        if(StringUtils.isBlank(detailRow.getString("panoramaurl"))){
+            detailRow.put("ispanorama", 0);
+        }else{
+            detailRow.put("ispanorama", 1);
+        }
 
 
         return getSucReturnObject().setData(detailRow).toString();