biz9-logic 4.8.343 → 4.8.347

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 +38 -26
  3. package/package.json +3 -2
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='8.2.3'
1
+ VERSION='8.2.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -252,13 +252,13 @@ class Type {
252
252
  static ENV_PRODUCTION="production";
253
253
 
254
254
  //size
255
- static SIZE_THUMB="thumb";
256
- static SIZE_MID="mid";
257
- static SIZE_LARGE="large";
258
- static SIZE_ORIGINAL="original";
259
- static SIZE_SQUARE_THUMB="squre_thumb";
260
- static SIZE_SQUARE_MID="squre_mid";
261
- static SIZE_SQUARE_LARGE="squre_large";
255
+ static IMAGE_SIZE_THUMB="thumb";
256
+ static IMAGE_SIZE_MID="mid";
257
+ static IMAGE_SIZE_LARGE="large";
258
+ static IMAGE_SIZE_ORIGINAL="original";
259
+ static IMAGE_SIZE_SQUARE_THUMB="squre_thumb";
260
+ static IMAGE_SIZE_SQUARE_MID="squre_mid";
261
+ static IMAGE_SIZE_SQUARE_LARGE="squre_large";
262
262
 
263
263
  //re_size
264
264
  static RESIZE_NORMAL="normal";
@@ -302,11 +302,26 @@ class Stat_Logic {
302
302
  let action_url="item/search_activity";
303
303
  return get_cloud_url_main(app_id,url,action_url,param);
304
304
  };
305
- static get_new = (user_id,stat_type_id,parent_item_list)=>{
305
+ static get_new_user = (user_id,stat_type,data)=>{
306
306
  return {
307
307
  user_id:user_id,
308
- stat_type_id:stat_type_id,
308
+ type:stat_type,
309
+ data:data,
310
+ }
311
+ }
312
+ static get_new = (user_id,stat_type,parent_item_list,data)=>{
313
+ return {
314
+ user_id:user_id,
315
+ type:stat_type,
309
316
  parent_item_list:parent_item_list,
317
+ data:data,
318
+ }
319
+ }
320
+ static get_new_activity = (user_id,stat_type,activity_data)=>{
321
+ return {
322
+ user_id:user_id,
323
+ type:stat_type,
324
+ activity:data,
310
325
  }
311
326
  }
312
327
  }
@@ -1023,7 +1038,6 @@ class DataType {
1023
1038
  static SECTION='section';
1024
1039
  static SUB_SECTION='sub_section';
1025
1040
 
1026
- static ACTIVITY='activity_biz';
1027
1041
  static APP='app_biz';
1028
1042
  static BLANK='blank_biz';
1029
1043
  static BLOG_POST='blog_post_biz';
@@ -1073,8 +1087,6 @@ class DataType {
1073
1087
  }
1074
1088
  static get_url(data_type){
1075
1089
  switch(data_type){
1076
- case DataType.ACTIVITY:
1077
- return 'activity';
1078
1090
  case DataType.BLOG_POST:
1079
1091
  return 'blog_post';
1080
1092
  case DataType.SERVICE:
@@ -1641,16 +1653,16 @@ class Url {
1641
1653
  static BLOG_POST_HOME="blog_post/home";
1642
1654
  static BLOG_POST_SEARCH="blog_post/search";
1643
1655
  //cart
1644
- static DELETE_CART="item/delete_cart";
1656
+ static CART_DELETE="item/cart_delete";
1645
1657
  static CART="item/cart";
1646
- static POST_CART="item/post_cart";
1647
- static SEARCH_CART="item/search_cart";
1658
+ static CART_POST="item/cart_post";
1659
+ static SEARCH_CART="item/cart_search";
1648
1660
  //category
1649
1661
  static CATEGORY_DETAIL="category/detail";
1650
1662
  static CATEGORY_HOME="category/home";
1651
1663
  static CATEGORY_SEARCH="category/search";
1652
1664
  //cms
1653
- static POST_CMS="item/post_cms";
1665
+ static CMS_POST="item/cms_post";
1654
1666
  //content
1655
1667
  static CONTENT="item/content";
1656
1668
  //crud
@@ -1671,23 +1683,23 @@ class Url {
1671
1683
  static EVENT_HOME="event/home";
1672
1684
  static EVENT_SEARCH="event/search";
1673
1685
  //favorite
1674
- static POST_FAVORITE="item/post_favorite";
1675
- static SEARCH_FAVORITE="item/search_review";
1686
+ static FAVORITE_POST="item/favorite_post";
1687
+ static FAVORITE_SEARCH="item/favorite_search";
1676
1688
  //field
1677
1689
  static CUSTOM_FIELD="item/custom_field";
1678
- static POST_FIELD_VALUE="item/post_field_value";
1690
+ static FIELD_VALUE_POST="item/field_value_post";
1679
1691
  //gallery
1680
1692
  static GALLERY_DETAIL="gallery/detail";
1681
1693
  static GALLERY_HOME="gallery/home";
1682
1694
  static GALLERY_SEARCH="gallery/search";
1683
1695
  //image
1684
1696
  static IMAGE_POST="main/image/post";
1685
- static IMAGE_CDN_POST="main/image/post_cdn";
1697
+ static IMAGE_CDN_POST="main/image/cdn_post";
1686
1698
  //order
1687
- static DELETE_ORDER="item/delete_order";
1699
+ static ORDER_DELETE="item/order_delete";
1688
1700
  static ORDER="item/order";
1689
- static POST_ORDER="item/post_order";
1690
- static SEARCH_ORDER="item/search_order";
1701
+ static ORDER_POST="item/order_post";
1702
+ static ORDER_SEARCH="item/order_search";
1691
1703
  //page
1692
1704
  static HOME="page/home";
1693
1705
  static ABOUT="page/about";
@@ -1698,8 +1710,8 @@ class Url {
1698
1710
  static PRODUCT_HOME="product/home";
1699
1711
  static PRODUCT_SEARCH="product/search";
1700
1712
  //review
1701
- static POST_REVIEW="item/post_review";
1702
- static SEARCH_REVIEW="item/search_review";
1713
+ static REVIEW_POST="item/review_post";
1714
+ static REVIEW_SEARCH="item/review_search";
1703
1715
  //service
1704
1716
  static SERVICE_DETAIL="service/detail";
1705
1717
  static SERVICE_HOME="service/home";
@@ -1709,7 +1721,7 @@ class Url {
1709
1721
  static USER_LOGOUT="user/logout";
1710
1722
  static USER_REGISTER="user/register";
1711
1723
  //stat
1712
- static SEARCH_ACTIVITY="item/search_activity";
1724
+ static STAT_SEARCH="item/stat_search";
1713
1725
  //template
1714
1726
  static TEMPLATE="item/template";
1715
1727
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.343",
3
+ "version": "4.8.347",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -30,5 +30,6 @@
30
30
  "axios",
31
31
  "fetch",
32
32
  "random"
33
- ]
33
+ ],
34
+ "devDependencies": {}
34
35
  }