biz9-logic 4.8.344 → 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.
- package/biz9_config +1 -1
- package/index.js +25 -13
- package/package.json +3 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -252,13 +252,13 @@ class Type {
|
|
|
252
252
|
static ENV_PRODUCTION="production";
|
|
253
253
|
|
|
254
254
|
//size
|
|
255
|
-
static
|
|
256
|
-
static
|
|
257
|
-
static
|
|
258
|
-
static
|
|
259
|
-
static
|
|
260
|
-
static
|
|
261
|
-
static
|
|
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
|
|
305
|
+
static get_new_user = (user_id,stat_type,data)=>{
|
|
306
306
|
return {
|
|
307
307
|
user_id:user_id,
|
|
308
|
-
|
|
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:
|
|
@@ -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
|
|
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.
|
|
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
|
}
|