biz9-logic 4.8.140 → 4.8.143
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 +7 -8
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1112,17 +1112,12 @@ class Favorite_Logic {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
class Review_Logic {
|
|
1115
|
-
static get_new = (parent_data_type,parent_id,
|
|
1115
|
+
static get_new = (parent_data_type,parent_id,user_id,title,comment,rating) =>{
|
|
1116
1116
|
return DataItem.get_new(DataType.REVIEW,0,{
|
|
1117
1117
|
parent_data_type:parent_data_type,
|
|
1118
1118
|
parent_id:parent_id,
|
|
1119
1119
|
user_id:user.id,
|
|
1120
1120
|
|
|
1121
|
-
email:user.email ? user.email : "",
|
|
1122
|
-
first_name:user.first_name ? user.first_name : "",
|
|
1123
|
-
last_name:user.last_name ? user.last_name : "",
|
|
1124
|
-
location:user.country ? User_Logic.get_user_country_state_city(user) : "",
|
|
1125
|
-
|
|
1126
1121
|
title:title ? title : "",
|
|
1127
1122
|
comment:comment ? comment : "",
|
|
1128
1123
|
rating:rating ? rating : ""
|
|
@@ -1477,8 +1472,12 @@ class Gallery_Url {
|
|
|
1477
1472
|
};
|
|
1478
1473
|
}
|
|
1479
1474
|
class User_Url {
|
|
1480
|
-
static
|
|
1481
|
-
let action_url="user/
|
|
1475
|
+
static register = (biz9_config,params) => {
|
|
1476
|
+
let action_url="user/register";
|
|
1477
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1478
|
+
};
|
|
1479
|
+
static login = (biz9_config,params) => {
|
|
1480
|
+
let action_url="user/login";
|
|
1482
1481
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1483
1482
|
};
|
|
1484
1483
|
}
|