biz9-logic 4.8.367 → 4.8.368
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 +17 -17
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -47,23 +47,7 @@ class Item_Logic {
|
|
|
47
47
|
}
|
|
48
48
|
return item;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
if(!id){
|
|
52
|
-
id=0;
|
|
53
|
-
}
|
|
54
|
-
let item = Item_Logic.get_test("",data_type,id,{get_blank:true})
|
|
55
|
-
item.id = 0;
|
|
56
|
-
item.id_key = id;
|
|
57
|
-
item.title = "Item Not Found";
|
|
58
|
-
item.title_url = Str.get_title_url(item.title);
|
|
59
|
-
item.images = [];
|
|
60
|
-
item.items = [];
|
|
61
|
-
if(option.app_id){
|
|
62
|
-
item.app_id = option.app_id;
|
|
63
|
-
}
|
|
64
|
-
return item;
|
|
65
|
-
};
|
|
66
|
-
static get_test_list = (data_type,option) =>{
|
|
50
|
+
static get_test_list = (data_type,option) =>{
|
|
67
51
|
option = Field_Logic.get_option(data_type,option?option:{});
|
|
68
52
|
let item_list = [];
|
|
69
53
|
for(let a=0;a<option.item_count+1;a++){
|
|
@@ -1519,6 +1503,22 @@ class App_Logic {
|
|
|
1519
1503
|
static get_search = (data_type,filter,sort_by,page_current,page_size) => {
|
|
1520
1504
|
return {data_type:data_type,filter:filter,sort_by:sort_by,page_current:page_current,page_size:page_size};
|
|
1521
1505
|
}
|
|
1506
|
+
static get_not_found = (data_type,id,option) =>{
|
|
1507
|
+
if(!id){
|
|
1508
|
+
id=0;
|
|
1509
|
+
}
|
|
1510
|
+
let item = Item_Logic.get_test("",data_type,id,{get_blank:true})
|
|
1511
|
+
item.id = 0;
|
|
1512
|
+
item.id_key = id;
|
|
1513
|
+
item.title = "Item Not Found";
|
|
1514
|
+
item.title_url = Str.get_title_url(item.title);
|
|
1515
|
+
item.images = [];
|
|
1516
|
+
item.items = [];
|
|
1517
|
+
if(option.app_id){
|
|
1518
|
+
item.app_id = option.app_id;
|
|
1519
|
+
}
|
|
1520
|
+
return item;
|
|
1521
|
+
};
|
|
1522
1522
|
static get_search_query(search){
|
|
1523
1523
|
let url = "";
|
|
1524
1524
|
if(search.data_type){
|