biz9-logic 4.8.283 → 4.8.285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biz9_config +1 -1
- package/index.js +3 -7
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -261,8 +261,8 @@ class Order_Logic {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
class Cart_Logic {
|
|
264
|
-
static get_new = (parent_data_type) => {
|
|
265
|
-
return DataItem.get_new(DataType.CART,0,{cart_number:FieldType.CART_NUMBER + Num.get_id(99999),parent_data_type:parent_data_type,grand_total:0,cart_item_list:[]});
|
|
264
|
+
static get_new = (parent_data_type,user_id) => {
|
|
265
|
+
return DataItem.get_new(DataType.CART,0,{user_id:user_id,cart_number:FieldType.CART_NUMBER + Num.get_id(99999),parent_data_type:parent_data_type,grand_total:0,cart_item_list:[]});
|
|
266
266
|
};
|
|
267
267
|
static get_new_cart_item = (parent_data_type,parent_id,cart_number,quanity) =>{
|
|
268
268
|
return DataItem.get_new(DataType.CART_ITEM,0,{parent_data_type:parent_data_type,parent_id:parent_id,cart_number:cart_number,quanity:quanity,cart_sub_item_list:[]});
|
|
@@ -1239,10 +1239,6 @@ class Item_Url {
|
|
|
1239
1239
|
let action_url="item/content/"+key;
|
|
1240
1240
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1241
1241
|
};
|
|
1242
|
-
static content = (app_id,url,key,params) => {
|
|
1243
|
-
let action_url="item/content/"+key;
|
|
1244
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1245
|
-
};
|
|
1246
1242
|
static custom_field = (app_id,url,data_type,key,params) => {
|
|
1247
1243
|
let action_url="item/custom_field/"+data_type+"/"+key;
|
|
1248
1244
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
@@ -1252,7 +1248,7 @@ class Item_Url {
|
|
|
1252
1248
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1253
1249
|
};
|
|
1254
1250
|
static delete_cart = (app_id,url,id,params) => {
|
|
1255
|
-
let action_url="item/delete_cart"+id;
|
|
1251
|
+
let action_url="item/delete_cart/"+id;
|
|
1256
1252
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1257
1253
|
};
|
|
1258
1254
|
static favorite = (app_id,url,parent_data_type,page_current,page_size,params) => {
|