biz9-logic 4.8.193 → 4.8.196
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 +5 -1
- package/package.json +1 -1
- package/test.js +7 -3
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -13,6 +13,10 @@ class Message {
|
|
|
13
13
|
static ERROR_TITLE="Please Enter A Valid Title";
|
|
14
14
|
static ERROR_EMAIL="Please Enter A Valid E-mail";
|
|
15
15
|
static DATA_NOT_FOUND="Data Not Found";
|
|
16
|
+
static FAVORITE_ADD_SUCCESS="Favorite Add Success";
|
|
17
|
+
static FAVORITE_REMOVE_SUCCESS="Favorite Remove Success";
|
|
18
|
+
static REVIEW_ADD_SUCCESS="Review Add Success";
|
|
19
|
+
static REVIEW_REMOVE_SUCCESS="Review Remove Success";
|
|
16
20
|
}
|
|
17
21
|
class TemplateType {
|
|
18
22
|
static PRIMARY='primary';
|
|
@@ -1876,7 +1880,7 @@ class User_Logic {
|
|
|
1876
1880
|
return country_state_city;
|
|
1877
1881
|
}
|
|
1878
1882
|
static get_guest(){
|
|
1879
|
-
return DataItem.get_new(DataType.USER,
|
|
1883
|
+
return DataItem.get_new(DataType.USER,0,{is_guest:true,title_url:'guest',first_name:'Guest',last_name:'User',email:'guest@email.com',title:"Guest",country:"United States"});
|
|
1880
1884
|
}
|
|
1881
1885
|
static get_request_user(req){
|
|
1882
1886
|
if(!req || !req.session.user){
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -31,9 +31,13 @@ describe("connect", () => {
|
|
|
31
31
|
series([
|
|
32
32
|
|
|
33
33
|
function(call) {
|
|
34
|
-
console.log('
|
|
35
|
-
console.log(
|
|
36
|
-
console.log('
|
|
34
|
+
console.log('USER-START');
|
|
35
|
+
console.log(User_Logic.get_guest());
|
|
36
|
+
console.log('USER-END');
|
|
37
|
+
|
|
38
|
+
//console.log('PRODUCT-URL-START');
|
|
39
|
+
//console.log(Product_Url.search('cool','google.com'));
|
|
40
|
+
//console.log('PRODUCT-URL-END');
|
|
37
41
|
//let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});
|
|
38
42
|
//let action_url = 'test_get_url';
|
|
39
43
|
//let params = '&myparam1=p1&myparam2=p2'
|