biz9-logic 4.8.264 → 4.8.267
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 +37 -40
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -262,15 +262,15 @@ class Cart_Logic {
|
|
|
262
262
|
static get_new = (parent_data_type) => {
|
|
263
263
|
return DataItem.get_new(DataType.CART,0,{cart_number:Cart_Logic.get_new_cart_number(),parent_data_type:parent_data_type,grand_total:0,cart_item_list:[]});
|
|
264
264
|
};
|
|
265
|
-
static get_new_cart_number = () => {
|
|
266
|
-
return FieldType.CART_NUMBER + Num.get_id(99999);
|
|
267
|
-
};
|
|
268
265
|
static get_new_cart_item = (parent_data_type,parent_id,cart_number,quanity) =>{
|
|
269
266
|
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:[]});
|
|
270
267
|
};
|
|
271
268
|
static get_new_cart_sub_item = (parent_data_type,parent_id,cart_number,quanity) =>{
|
|
272
269
|
return DataItem.get_new(DataType.CART_ITEM,0,{parent_data_type:parent_data_type,parent_id:parent_id,cart_number:cart_number,quanity:quanity});
|
|
273
270
|
};
|
|
271
|
+
static get_new_cart_number = () => {
|
|
272
|
+
return FieldType.CART_NUMBER + Num.get_id(99999);
|
|
273
|
+
};
|
|
274
274
|
}
|
|
275
275
|
class Product_Logic {
|
|
276
276
|
static get_test = (title,option) =>{
|
|
@@ -1211,33 +1211,7 @@ class Blog_Post_Url {
|
|
|
1211
1211
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
class Cart_Url {
|
|
1215
|
-
static post = (app_id,url,item_data_type,params) => {
|
|
1216
|
-
let action_url="cart/post/"+item_data_type;
|
|
1217
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1218
|
-
};
|
|
1219
|
-
static get = (app_id,url,cart_number,params) => {
|
|
1220
|
-
let action_url="cart/get/"+cart_number;
|
|
1221
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1222
|
-
};
|
|
1223
|
-
static delete = (app_id,url,id,params) => {
|
|
1224
|
-
let action_url="cart/delete/"+id;
|
|
1225
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1226
|
-
};
|
|
1227
|
-
}
|
|
1228
1214
|
class Order_Url {
|
|
1229
|
-
static post = (app_id,url,params) => {
|
|
1230
|
-
let action_url="order/post";
|
|
1231
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1232
|
-
};
|
|
1233
|
-
static get = (app_id,url,order_number,params) => {
|
|
1234
|
-
let action_url="order/get/"+order_number;
|
|
1235
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1236
|
-
};
|
|
1237
|
-
static delete = (app_id,url,id,params) => {
|
|
1238
|
-
let action_url="order/delete/"+id;
|
|
1239
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1240
|
-
};
|
|
1241
1215
|
}
|
|
1242
1216
|
class Product_Url {
|
|
1243
1217
|
static detail = (app_id,url,key,params) => {
|
|
@@ -1318,12 +1292,8 @@ class Item_Url {
|
|
|
1318
1292
|
let action_url = "item/post_cms/"+data_type+"/"+id;
|
|
1319
1293
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1320
1294
|
};
|
|
1321
|
-
static
|
|
1322
|
-
let action_url="item/
|
|
1323
|
-
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1324
|
-
};
|
|
1325
|
-
static post_review = (app_id,url,parent_data_type,item_id,params) => {
|
|
1326
|
-
let action_url="item/post_review/"+parent_data_type+"/"+item_id;
|
|
1295
|
+
static post_field_value = (app_id,url,item_data_type,parent_item_id,value_id,params) => {
|
|
1296
|
+
let action_url="item/post_field_value/"+item_data_type+"/"+parent_item_id;
|
|
1327
1297
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1328
1298
|
};
|
|
1329
1299
|
static content = (app_id,url,key,params) => {
|
|
@@ -1334,16 +1304,44 @@ class Item_Url {
|
|
|
1334
1304
|
let action_url="item/custom_field/"+data_type+"/"+key;
|
|
1335
1305
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1336
1306
|
};
|
|
1307
|
+
static review = (app_id,url,parent_data_type,page_current,page_size,params) => {
|
|
1308
|
+
let action_url="item/review/"+parent_data_type+"/"+page_current+"/"+page_size;
|
|
1309
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1310
|
+
};
|
|
1311
|
+
static post_review = (app_id,url,parent_data_type,item_id,params) => {
|
|
1312
|
+
let action_url="item/post_review/"+parent_data_type+"/"+item_id;
|
|
1313
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1314
|
+
};
|
|
1337
1315
|
static favorite = (app_id,url,parent_data_type,page_current,page_size,params) => {
|
|
1338
1316
|
let action_url="item/favorite/"+parent_data_type+"/"+page_current+"/"+page_size;
|
|
1339
1317
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1340
1318
|
};
|
|
1341
|
-
static post_favorite = (app_id,url,parent_data_type,
|
|
1342
|
-
let action_url="item/post_favorite"+parent_data_type+"/"+
|
|
1319
|
+
static post_favorite = (app_id,url,parent_data_type,parent_item_id,params) => {
|
|
1320
|
+
let action_url="item/post_favorite"+parent_data_type+"/"+parent_item_id;
|
|
1321
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1322
|
+
};
|
|
1323
|
+
static cart = (app_id,url,cart_number,params) => {
|
|
1324
|
+
let action_url="item/cart"+cart_number;
|
|
1325
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1326
|
+
};
|
|
1327
|
+
static post_cart = (app_id,url,parent_data_type,params) => {
|
|
1328
|
+
let action_url="item/post_cart/"+parent_data_type;
|
|
1329
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1330
|
+
};
|
|
1331
|
+
static delete_cart = (app_id,url,id,params) => {
|
|
1332
|
+
let action_url="item/delete_cart"+id;
|
|
1333
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1334
|
+
};
|
|
1335
|
+
static order = (app_id,url,order_number,params) => {
|
|
1336
|
+
let action_url="item/order/"+order_number;
|
|
1337
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1338
|
+
};
|
|
1339
|
+
static post_order = (app_id,url,params) => {
|
|
1340
|
+
let action_url="item/post_order";
|
|
1343
1341
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1344
1342
|
};
|
|
1345
|
-
static
|
|
1346
|
-
let action_url="item/
|
|
1343
|
+
static delete_order = (app_id,url,id,params) => {
|
|
1344
|
+
let action_url="item/delete_order/"+id;
|
|
1347
1345
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1348
1346
|
};
|
|
1349
1347
|
}
|
|
@@ -1939,7 +1937,6 @@ module.exports = {
|
|
|
1939
1937
|
Blog_Post_Url,
|
|
1940
1938
|
Dashboard_Url,
|
|
1941
1939
|
Cart_Logic,
|
|
1942
|
-
Cart_Url,
|
|
1943
1940
|
Category_Logic,
|
|
1944
1941
|
Category_Url,
|
|
1945
1942
|
Content_Logic,
|