biz9-logic 4.8.102 → 4.8.103
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 +1 -6
- package/package.json +1 -1
- package/test.js +16 -6
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -430,7 +430,7 @@ class Field_Logic {
|
|
|
430
430
|
static get_test = (title,option) =>{
|
|
431
431
|
option = !Obj.check_is_empty(option) ? option : {};
|
|
432
432
|
let sub_note = "Sub Note "+String(Number.get_id());
|
|
433
|
-
let note = "Note "+String(Number.get_id());
|
|
433
|
+
let note = "Note "+String(Number.get_id()) + "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
|
|
434
434
|
option.category_title = !Str.check_is_null(option.category_title) ? option.category_title : 'Category '+String(Number.get_id());
|
|
435
435
|
if(option.get_blank == true){
|
|
436
436
|
date_create:"";
|
|
@@ -1515,21 +1515,17 @@ class User_Logic {
|
|
|
1515
1515
|
if(item.country == "United States"){
|
|
1516
1516
|
let state = "";
|
|
1517
1517
|
if(!Str.check_is_null(item.state)){
|
|
1518
|
-
console.log('aaaa');
|
|
1519
1518
|
country_state_city = item.state;
|
|
1520
1519
|
}
|
|
1521
1520
|
if(!Str.check_is_null(item.city)){
|
|
1522
1521
|
if(!Str.check_is_null(item.state)){
|
|
1523
|
-
console.log('bbbb');
|
|
1524
1522
|
country_state_city = item.city + ", " + item.state;
|
|
1525
1523
|
}else{
|
|
1526
|
-
console.log('cccccc');
|
|
1527
1524
|
country_state_city = item.city;
|
|
1528
1525
|
}
|
|
1529
1526
|
}
|
|
1530
1527
|
}
|
|
1531
1528
|
else{
|
|
1532
|
-
console.log('cccc');
|
|
1533
1529
|
if(!Str.check_is_null(item.city)){
|
|
1534
1530
|
country_state_city = item.city + ", " + item.country;
|
|
1535
1531
|
}else{
|
|
@@ -1537,7 +1533,6 @@ class User_Logic {
|
|
|
1537
1533
|
}
|
|
1538
1534
|
}
|
|
1539
1535
|
return country_state_city;
|
|
1540
|
-
|
|
1541
1536
|
}
|
|
1542
1537
|
static get_user(req){
|
|
1543
1538
|
if(!req || !req.session.user){
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const series = require('async-series');
|
|
3
|
-
const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq_Logic,Category_Url,Blank_Url,Blank_Logic,Item_Logic,Service_Logic,Template_Logic,Page_Logic,Product_Logic,Event_Logic,Blog_Post_Logic,Content_Logic,Category_Logic,Team_Logic,Business_Logic,PageType,Sub_Item_Logic,Page_Url,Review_Logic,User_Logic} = require('./index');
|
|
3
|
+
const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq_Logic,Category_Url,Blank_Url,Blank_Logic,Item_Logic,Service_Logic,Template_Logic,Page_Logic,Product_Logic,Event_Logic,Blog_Post_Logic,Content_Logic,Category_Logic,Team_Logic,Business_Logic,PageType,Sub_Item_Logic,Page_Url,Review_Logic,User_Logic,Field_Logic} = require('./index');
|
|
4
4
|
const {Log,Number} = require('biz9-utility');
|
|
5
5
|
const {Scriptz}= require('biz9-scriptz');
|
|
6
6
|
|
|
@@ -83,15 +83,26 @@ describe("connect", () => {
|
|
|
83
83
|
//Log.w('team_list',team_list);
|
|
84
84
|
/* --TEAM--END */
|
|
85
85
|
|
|
86
|
-
/* --
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
/* --FIELD-LOGIC--START */
|
|
87
|
+
let field_logic = Field_Logic.get_test();
|
|
88
|
+
Log.w('field_logic',field_logic);
|
|
89
|
+
//let country_state = User_Logic.get_user_country_state_city(user);
|
|
90
|
+
//Log.w('country_state',country_state);
|
|
90
91
|
//let user = User_Logic.get_test();
|
|
91
92
|
//let user_list = User_Logic.get_test_list();
|
|
92
93
|
//Log.w('user',user);
|
|
93
94
|
//Log.w('user_list',user_list);
|
|
95
|
+
/* --FIELD-LOGIC--END */
|
|
96
|
+
|
|
94
97
|
|
|
98
|
+
/* --USER--START */
|
|
99
|
+
//let user = {country:"United States",state:"",city:"Atlanta"};
|
|
100
|
+
//let country_state = User_Logic.get_user_country_state_city(user);
|
|
101
|
+
//Log.w('country_state',country_state);
|
|
102
|
+
//let user = User_Logic.get_test();
|
|
103
|
+
//let user_list = User_Logic.get_test_list();
|
|
104
|
+
//Log.w('user',user);
|
|
105
|
+
//Log.w('user_list',user_list);
|
|
95
106
|
/* --USER--END */
|
|
96
107
|
|
|
97
108
|
/* --SEARCH--START */
|
|
@@ -105,7 +116,6 @@ describe("connect", () => {
|
|
|
105
116
|
let search_filter_value_2 = 'value2';
|
|
106
117
|
*/
|
|
107
118
|
|
|
108
|
-
|
|
109
119
|
//let query = "?app_id=19&data_type="+data_type+"&sort_by={}&page_current=1&page_size=99&search_filter_key_1="+search_filter_key_1+"&search_filter_value_1="+search_filter_value_1+"&search_filter_key_2="+search_filter_key_2+"&search_filter_value_2="+search_filter_value_2;
|
|
110
120
|
|
|
111
121
|
//Log.w('query',query);
|