biz9-logic 4.8.215 → 4.8.219
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 -1
- package/package.json +1 -1
- package/test.js +5 -3
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1491,7 +1491,7 @@ class Favorite_Url {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
class Item_Url {
|
|
1493
1493
|
static post_cms = (app_id,url,data_type,id,params) => {
|
|
1494
|
-
let action_url = "item/
|
|
1494
|
+
let action_url = "item/post_cms/"+data_type+"/"+id;
|
|
1495
1495
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1496
1496
|
};
|
|
1497
1497
|
}
|
|
@@ -1930,6 +1930,12 @@ class User_Logic {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
return country_state_city;
|
|
1932
1932
|
}
|
|
1933
|
+
static get_full_name(first_name,last_name){
|
|
1934
|
+
let str_first_name = !Str.check_is_null(first_name) ? first_name : "";
|
|
1935
|
+
let str_last_name = !Str.check_is_null(last_name) ? last_name : "";
|
|
1936
|
+
return !Str.check_is_null(String(str_first_name + " " + str_last_name)) ? String(str_first_name + " " + str_last_name).trim() : "N/A";
|
|
1937
|
+
|
|
1938
|
+
}
|
|
1933
1939
|
static get_guest(){
|
|
1934
1940
|
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"});
|
|
1935
1941
|
}
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -31,9 +31,11 @@ describe("connect", () => {
|
|
|
31
31
|
series([
|
|
32
32
|
|
|
33
33
|
function(call) {
|
|
34
|
-
console.log('
|
|
35
|
-
console.log(User_Logic.
|
|
36
|
-
|
|
34
|
+
console.log('FULL-NAME-START');
|
|
35
|
+
console.log(User_Logic.get_full_name('',''));
|
|
36
|
+
|
|
37
|
+
console.log('FULL-NAME-END');
|
|
38
|
+
|
|
37
39
|
|
|
38
40
|
//console.log('PRODUCT-URL-START');
|
|
39
41
|
//console.log(Product_Url.search('cool','google.com'));
|