biz9-logic 4.8.357 → 4.8.360
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 +9 -5
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -56,6 +56,8 @@ class Item_Logic {
|
|
|
56
56
|
item.id_key = id;
|
|
57
57
|
item.title = "Item Not Found";
|
|
58
58
|
item.title_url = Str.get_title_url(item.title);
|
|
59
|
+
item.images = [];
|
|
60
|
+
item.items = [];
|
|
59
61
|
if(option.app_id){
|
|
60
62
|
item.app_id = option.app_id;
|
|
61
63
|
}
|
|
@@ -1148,6 +1150,7 @@ class DataType {
|
|
|
1148
1150
|
static SECURITY='security_biz';
|
|
1149
1151
|
static STAT='stat_biz';
|
|
1150
1152
|
static TEMPLATE='template_biz';
|
|
1153
|
+
static TYPE='type_biz';
|
|
1151
1154
|
static USER='user_biz';
|
|
1152
1155
|
static VIDEO='video_biz';
|
|
1153
1156
|
static get_list = () =>{
|
|
@@ -1466,6 +1469,8 @@ class User_Logic {
|
|
|
1466
1469
|
user.title = "User Not Found";
|
|
1467
1470
|
user.first_name = "User Not Found";
|
|
1468
1471
|
user.title_url = Str.get_title_url(user.title);
|
|
1472
|
+
user.images = [];
|
|
1473
|
+
user.items = [];
|
|
1469
1474
|
if(option.app_id){
|
|
1470
1475
|
user.app_id = option.app_id;
|
|
1471
1476
|
}
|
|
@@ -1510,10 +1515,10 @@ class Sub_Item_Logic {
|
|
|
1510
1515
|
let item_title =title;
|
|
1511
1516
|
let item = DataItem.get_new(
|
|
1512
1517
|
DataType.ITEM,0, {
|
|
1513
|
-
top_id:top_item.id,
|
|
1514
|
-
top_data_type:top_item.data_type,
|
|
1515
|
-
parent_id:parent_item.id,
|
|
1516
|
-
parent_data_type:parent_item.data_type,
|
|
1518
|
+
top_id:top_item.id?top_item.id:0,
|
|
1519
|
+
top_data_type:top_item.data_type?top_item.data_type:DataType.BLANK,
|
|
1520
|
+
parent_id:parent_item.id?parent_item.id:0,
|
|
1521
|
+
parent_data_type:parent_item.data_type?parent_item.data_type:DataType.BLANK,
|
|
1517
1522
|
title:item_title,
|
|
1518
1523
|
title_url:Str.get_title_url(item_title),
|
|
1519
1524
|
sub_note:"Sub Note "+String(Num.get_id()),
|
|
@@ -1673,7 +1678,6 @@ class Url {
|
|
|
1673
1678
|
static EVENT_SEARCH="event/search";
|
|
1674
1679
|
//favorite
|
|
1675
1680
|
static FAVORITE_POST="item/favorite_post";
|
|
1676
|
-
static FAVORITE_SEARCH="item/favorite_search";
|
|
1677
1681
|
//field
|
|
1678
1682
|
static CUSTOM_FIELD="item/custom_field";
|
|
1679
1683
|
static FIELD_VALUE_POST="item/field_value_post";
|