biz9-logic 4.8.266 → 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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +22 -22
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='7.4.6'
1
+ VERSION='7.4.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
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) =>{
@@ -1292,12 +1292,8 @@ class Item_Url {
1292
1292
  let action_url = "item/post_cms/"+data_type+"/"+id;
1293
1293
  return get_cloud_url_main(app_id,url,action_url,params);
1294
1294
  };
1295
- static review = (app_id,url,parent_data_type,page_current,page_size,params) => {
1296
- let action_url="item/review/"+parent_data_type+"/"+page_current+"/"+page_size;
1297
- return get_cloud_url_main(app_id,url,action_url,params);
1298
- };
1299
- static post_review = (app_id,url,parent_data_type,item_id,params) => {
1300
- 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;
1301
1297
  return get_cloud_url_main(app_id,url,action_url,params);
1302
1298
  };
1303
1299
  static content = (app_id,url,key,params) => {
@@ -1308,6 +1304,14 @@ class Item_Url {
1308
1304
  let action_url="item/custom_field/"+data_type+"/"+key;
1309
1305
  return get_cloud_url_main(app_id,url,action_url,params);
1310
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
+ };
1311
1315
  static favorite = (app_id,url,parent_data_type,page_current,page_size,params) => {
1312
1316
  let action_url="item/favorite/"+parent_data_type+"/"+page_current+"/"+page_size;
1313
1317
  return get_cloud_url_main(app_id,url,action_url,params);
@@ -1316,32 +1320,28 @@ class Item_Url {
1316
1320
  let action_url="item/post_favorite"+parent_data_type+"/"+parent_item_id;
1317
1321
  return get_cloud_url_main(app_id,url,action_url,params);
1318
1322
  };
1319
- static post_field_value = (app_id,url,item_data_type,parent_item_id,value_id,params) => {
1320
- let action_url="item/post_field_value/"+item_data_type+"/"+parent_item_id;
1323
+ static cart = (app_id,url,cart_number,params) => {
1324
+ let action_url="item/cart"+cart_number;
1321
1325
  return get_cloud_url_main(app_id,url,action_url,params);
1322
1326
  };
1323
1327
  static post_cart = (app_id,url,parent_data_type,params) => {
1324
- let action_url="cart/post/"+parent_data_type;
1325
- return get_cloud_url_main(app_id,url,action_url,params);
1326
- };
1327
- static cart = (app_id,url,cart_number,params) => {
1328
- let action_url="cart/get/"+cart_number;
1328
+ let action_url="item/post_cart/"+parent_data_type;
1329
1329
  return get_cloud_url_main(app_id,url,action_url,params);
1330
1330
  };
1331
1331
  static delete_cart = (app_id,url,id,params) => {
1332
- let action_url="cart/delete/"+id;
1332
+ let action_url="item/delete_cart"+id;
1333
1333
  return get_cloud_url_main(app_id,url,action_url,params);
1334
1334
  };
1335
- static post_order = (app_id,url,params) => {
1336
- let action_url="order/post";
1335
+ static order = (app_id,url,order_number,params) => {
1336
+ let action_url="item/order/"+order_number;
1337
1337
  return get_cloud_url_main(app_id,url,action_url,params);
1338
1338
  };
1339
- static order = (app_id,url,order_number,params) => {
1340
- let action_url="order/get/"+order_number;
1339
+ static post_order = (app_id,url,params) => {
1340
+ let action_url="item/post_order";
1341
1341
  return get_cloud_url_main(app_id,url,action_url,params);
1342
1342
  };
1343
1343
  static delete_order = (app_id,url,id,params) => {
1344
- let action_url="order/delete/"+id;
1344
+ let action_url="item/delete_order/"+id;
1345
1345
  return get_cloud_url_main(app_id,url,action_url,params);
1346
1346
  };
1347
1347
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.266",
3
+ "version": "4.8.267",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"