biz9-logic 4.8.201 → 4.8.203
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 -14
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1252,6 +1252,12 @@ class DataItem {
|
|
|
1252
1252
|
return get_new_full_item_main(item,parent_item,top_item,option?option:{});
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
|
+
class Business_Url {
|
|
1256
|
+
static get = (app_id,url,params) => {
|
|
1257
|
+
let action_url="item/get_business";
|
|
1258
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1255
1261
|
class Blank_Url {
|
|
1256
1262
|
static get = (app_id,url,key,params) => {
|
|
1257
1263
|
let action_url="blank/get/"+key;
|
|
@@ -1305,8 +1311,8 @@ class FAQ_Url {
|
|
|
1305
1311
|
};
|
|
1306
1312
|
}
|
|
1307
1313
|
class Cart_Url {
|
|
1308
|
-
static post = (app_id,url,parent_data_type,
|
|
1309
|
-
let action_url="cart/post/"+parent_data_type
|
|
1314
|
+
static post = (app_id,url,parent_data_type,params) => {
|
|
1315
|
+
let action_url="cart/post/"+parent_data_type;
|
|
1310
1316
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1311
1317
|
};
|
|
1312
1318
|
static get = (app_id,url,cart_number,params) => {
|
|
@@ -1351,12 +1357,12 @@ class Product_Url {
|
|
|
1351
1357
|
};
|
|
1352
1358
|
}
|
|
1353
1359
|
class Review_Url {
|
|
1354
|
-
static get = (app_id,url,parent_data_type,
|
|
1355
|
-
let action_url="review/get/"+parent_data_type+"/"+
|
|
1360
|
+
static get = (app_id,url,parent_data_type,page_current,page_size,params) => {
|
|
1361
|
+
let action_url="review/get/"+parent_data_type+"/"+page_current+"/"+page_size;
|
|
1356
1362
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1357
1363
|
};
|
|
1358
|
-
static post = (app_id,url,parent_data_type,parent_id,
|
|
1359
|
-
let action_url="review/post/"+parent_data_type+"/"+parent_id
|
|
1364
|
+
static post = (app_id,url,parent_data_type,parent_id,params) => {
|
|
1365
|
+
let action_url="review/post/"+parent_data_type+"/"+parent_id;
|
|
1360
1366
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1361
1367
|
};
|
|
1362
1368
|
}
|
|
@@ -1437,8 +1443,8 @@ class Gallery_Url {
|
|
|
1437
1443
|
};
|
|
1438
1444
|
}
|
|
1439
1445
|
class User_Url {
|
|
1440
|
-
static info = (app_id,url,
|
|
1441
|
-
let action_url="user/info/"
|
|
1446
|
+
static info = (app_id,url,params) => {
|
|
1447
|
+
let action_url="user/info/";
|
|
1442
1448
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1443
1449
|
};
|
|
1444
1450
|
static register = (app_id,url,params) => {
|
|
@@ -1449,14 +1455,18 @@ class User_Url {
|
|
|
1449
1455
|
let action_url="user/login";
|
|
1450
1456
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1451
1457
|
};
|
|
1458
|
+
static logout = (app_id,url,params) => {
|
|
1459
|
+
let action_url="user/logout";
|
|
1460
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1461
|
+
};
|
|
1452
1462
|
}
|
|
1453
1463
|
class Favorite_Url {
|
|
1454
|
-
static get = (app_id,url,parent_data_type,
|
|
1455
|
-
let action_url="favorite/get/"+parent_data_type+"/"+
|
|
1464
|
+
static get = (app_id,url,parent_data_type,page_current,page_size,params) => {
|
|
1465
|
+
let action_url="favorite/get/"+parent_data_type+"/"+page_current+"/"+page_size;
|
|
1456
1466
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1457
1467
|
};
|
|
1458
|
-
static post = (app_id,url,parent_data_type,parent_id,
|
|
1459
|
-
let action_url="favorite/post/"+parent_data_type+"/"+parent_id
|
|
1468
|
+
static post = (app_id,url,parent_data_type,parent_id,params) => {
|
|
1469
|
+
let action_url="favorite/post/"+parent_data_type+"/"+parent_id;
|
|
1460
1470
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1461
1471
|
};
|
|
1462
1472
|
}
|
|
@@ -1911,10 +1921,10 @@ class User_Logic {
|
|
|
1911
1921
|
}
|
|
1912
1922
|
return req.session.user;
|
|
1913
1923
|
}
|
|
1914
|
-
static post_request_user(req){
|
|
1924
|
+
static post_request_user(req,user){
|
|
1915
1925
|
req.session.user=user;
|
|
1916
1926
|
}
|
|
1917
|
-
static
|
|
1927
|
+
static delete_request_user(req){
|
|
1918
1928
|
req.session.user=null;
|
|
1919
1929
|
delete req.session.user;
|
|
1920
1930
|
}
|
|
@@ -2035,6 +2045,7 @@ class App_Logic {
|
|
|
2035
2045
|
module.exports = {
|
|
2036
2046
|
App_Logic,
|
|
2037
2047
|
Admin_Logic,
|
|
2048
|
+
Business_Url,
|
|
2038
2049
|
Business_Logic,
|
|
2039
2050
|
Blank_Logic,
|
|
2040
2051
|
Blank_Url,
|