Ver Fonte

新增热门商品返回id

吴志根 há 4 anos atrás
pai
commit
08bfb7ee55

+ 3 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/products/products.java

@@ -123,7 +123,9 @@ public class products extends Controller {
         paoRemote.setValue("frownum", frownum);
         paoRemote.setValue("siteid", siteid);
         paoSetRemote.save();
-        return getSucReturnObject().toString();
+        JSONObject resultObject = new JSONObject();
+        resultObject.put("texcellenproductid", paoRemote.getUniqueIDValue());
+        return getSucReturnObject().setData(resultObject).toString();
 
 
     }