Browse Source

收藏夹定制信息修改

eganwu 1 năm trước cách đây
mục cha
commit
1e3c744637

+ 2 - 2
src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

@@ -333,10 +333,10 @@ public class ShoppingCart extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
-            if (row.getLong("width") == 0) {
+            if (row.getBigDecimal("width").compareTo(BigDecimal.ZERO)==0) {
                 row.replace("width", null);
             }
-            if (row.getLong("length") == 0) {
+            if (row.getBigDecimal("length").compareTo(BigDecimal.ZERO)==0) {
                 row.replace("length", null);
             }
             row.put("isselect", true);