biz9-logic 4.8.118 → 4.8.120
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 +24 -3
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -797,6 +797,11 @@ class Social {
|
|
|
797
797
|
static YOUTUBE_URL="https://youtube.com/";
|
|
798
798
|
static LINKEDIN_URL="https://linkedin.com/";
|
|
799
799
|
}
|
|
800
|
+
class UserType {
|
|
801
|
+
static ADMIN="admin";
|
|
802
|
+
static MEMBER="member";
|
|
803
|
+
static GUEST="guest";
|
|
804
|
+
}
|
|
800
805
|
class PageType {
|
|
801
806
|
static get_title = (data_type) => {
|
|
802
807
|
if(!data_type){
|
|
@@ -1211,8 +1216,8 @@ class Order_Url {
|
|
|
1211
1216
|
let action_url="order/checkout-success/"+cart_id;
|
|
1212
1217
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1213
1218
|
};
|
|
1214
|
-
static
|
|
1215
|
-
let action_url="order/cart-update/"cart_item_id+"/"+cart_id+"/"+user_id+"/"+parent_data_type+"/"+parent_id;
|
|
1219
|
+
static cart_update = (biz9_config,cart_item_id,cart_id,user_id,parent_data_type,parent_id,params) => {
|
|
1220
|
+
let action_url="order/cart-update/"+cart_item_id+"/"+cart_id+"/"+user_id+"/"+parent_data_type+"/"+parent_id;
|
|
1216
1221
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1217
1222
|
};
|
|
1218
1223
|
static cart_get = (biz9_config,cart_id,params) => {
|
|
@@ -1227,6 +1232,22 @@ class Order_Url {
|
|
|
1227
1232
|
let action_url="order/cart-search/";
|
|
1228
1233
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1229
1234
|
};
|
|
1235
|
+
static order_update = (biz9_config,order_item_id,order_id,user_id,parent_data_type,parent_id,params) => {
|
|
1236
|
+
let action_url="order/order-update/"+order_item_id+"/"+order_id+"/"+user_id+"/"+parent_data_type+"/"+parent_id;
|
|
1237
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1238
|
+
};
|
|
1239
|
+
static order_get = (biz9_config,order_id,params) => {
|
|
1240
|
+
let action_url="order/order-get/"+order_id;
|
|
1241
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1242
|
+
};
|
|
1243
|
+
static order_delete = (biz9_config,id,params) => {
|
|
1244
|
+
let action_url="order/order-delete/"+id;
|
|
1245
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1246
|
+
};
|
|
1247
|
+
static order_search = (biz9_config,params) => {
|
|
1248
|
+
let action_url="order/order-search/";
|
|
1249
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1250
|
+
};
|
|
1230
1251
|
}
|
|
1231
1252
|
class Product_Url {
|
|
1232
1253
|
static get = (biz9_config,key,params) => {
|
|
@@ -1777,7 +1798,7 @@ class User_Logic {
|
|
|
1777
1798
|
}
|
|
1778
1799
|
static get_user(req){
|
|
1779
1800
|
if(!req || !req.session.user){
|
|
1780
|
-
let user=DataItem.get_new(DataType.USER,
|
|
1801
|
+
let user=DataItem.get_new(DataType.USER,Number.get_id(9999999),{is_guest:true});
|
|
1781
1802
|
req.session.user=user;
|
|
1782
1803
|
}
|
|
1783
1804
|
return req.session.user;
|