biz9-logic 4.0.53 → 4.5.6
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 +13 -16
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -86,7 +86,7 @@ class Product_Logic{
|
|
|
86
86
|
}
|
|
87
87
|
let item_list=[];
|
|
88
88
|
for(let a=0;a<option.product_count;a++){
|
|
89
|
-
item_list.push(
|
|
89
|
+
item_list.push(Product_Logic.get_test(option));
|
|
90
90
|
}
|
|
91
91
|
return item_list;
|
|
92
92
|
};
|
|
@@ -105,12 +105,12 @@ class Product_Logic{
|
|
|
105
105
|
product_count = parseInt(option.product_count);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
let category_list =
|
|
108
|
+
let category_list = Category_Logic.get_type_category_list(DataType.PRODUCT,category_count);
|
|
109
109
|
let item_count = 0;
|
|
110
110
|
for(let a=0;a<category_list.length;a++){
|
|
111
111
|
for(let b=0;b<product_count;b++){
|
|
112
112
|
item_count++;
|
|
113
|
-
let product =
|
|
113
|
+
let product = Product_Logic.get_test({item_count:0,product_count:product_count,get_value:false,get_item:false,value_count:20});
|
|
114
114
|
product.category = category_list[Number.get_id(category_list.length-1)].title;
|
|
115
115
|
product_list.push(product);
|
|
116
116
|
}
|
|
@@ -171,7 +171,7 @@ class Service_Logic{
|
|
|
171
171
|
service_count = parseInt(option.service_count);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
let category_list =
|
|
174
|
+
let category_list = Category_Logic.get_type_category_list(DataType.SERVICE,category_count);
|
|
175
175
|
let item_count = 0;
|
|
176
176
|
for(let a=0;a<category_list.length;a++){
|
|
177
177
|
for(let b=0;b<service_count;b++){
|
|
@@ -221,7 +221,7 @@ class Event_Logic{
|
|
|
221
221
|
}
|
|
222
222
|
let item_list=[];
|
|
223
223
|
for(let a=0;a<option.event_count;a++){
|
|
224
|
-
item_list.push(
|
|
224
|
+
item_list.push(Event_Logic.get_test(option));
|
|
225
225
|
}
|
|
226
226
|
return item_list;
|
|
227
227
|
};
|
|
@@ -240,12 +240,12 @@ class Event_Logic{
|
|
|
240
240
|
event_count = parseInt(option.event_count);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
let category_list =
|
|
243
|
+
let category_list = Category_Logic.get_type_category_list(DataType.EVENT,category_count);
|
|
244
244
|
let item_count = 0;
|
|
245
245
|
for(let a=0;a<category_list.length;a++){
|
|
246
246
|
for(let b=0;b<event_count;b++){
|
|
247
247
|
item_count++;
|
|
248
|
-
let event =
|
|
248
|
+
let event = Event_Logic.get_test({item_count:0,event_count:event_count,get_value:false,get_item:false,value_count:20});
|
|
249
249
|
event.category = category_list[Number.get_id(category_list.length-1)].title;
|
|
250
250
|
event_list.push(event);
|
|
251
251
|
}
|
|
@@ -437,7 +437,7 @@ class Blog_Post_Logic{
|
|
|
437
437
|
}
|
|
438
438
|
let item_list=[];
|
|
439
439
|
for(let a=0;a<option.blog_post_count;a++){
|
|
440
|
-
item_list.push(
|
|
440
|
+
item_list.push(Blog_Post_Logic.get_test(option));
|
|
441
441
|
}
|
|
442
442
|
return item_list;
|
|
443
443
|
};
|
|
@@ -456,12 +456,12 @@ class Blog_Post_Logic{
|
|
|
456
456
|
blog_post_count = parseInt(option.blog_post_count);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
let category_list =
|
|
459
|
+
let category_list = Category_Logic.get_type_category_list(DataType.BLOG_POST,category_count);
|
|
460
460
|
let item_count = 0;
|
|
461
461
|
for(let a=0;a<category_list.length;a++){
|
|
462
462
|
for(let b=0;b<blog_post_count;b++){
|
|
463
463
|
item_count++;
|
|
464
|
-
let blog_post =
|
|
464
|
+
let blog_post = Blog_Post_Logic.get_test({item_count:0,blog_post_count:blog_post_count,get_value:false,get_item:false,value_count:20});
|
|
465
465
|
blog_post.category = category_list[Number.get_id(category_list.length-1)].title;
|
|
466
466
|
blog_post_list.push(blog_post);
|
|
467
467
|
}
|
|
@@ -515,7 +515,7 @@ class Review_Logic{
|
|
|
515
515
|
}
|
|
516
516
|
let item_list = [];
|
|
517
517
|
for(let a=0;a<option.review_count;a++){
|
|
518
|
-
item_list.push(
|
|
518
|
+
item_list.push(Review_Logic.get_test());
|
|
519
519
|
}
|
|
520
520
|
return item_list;
|
|
521
521
|
};
|
|
@@ -699,7 +699,7 @@ class Category_Logic {
|
|
|
699
699
|
DataItem.get_new(DataType.CATEGORY,0),
|
|
700
700
|
DataItem.get_new(DataType.CATEGORY,0),
|
|
701
701
|
Field.get_test("Category " +Number.get_id()));
|
|
702
|
-
category.type =
|
|
702
|
+
category.type = Category_Logic.get_category_list()[Number.get_id(Category_Logic.get_category_list().length-1)].data_type;
|
|
703
703
|
return category;
|
|
704
704
|
}
|
|
705
705
|
static get_test_list=(option)=>{
|
|
@@ -708,7 +708,7 @@ class Category_Logic {
|
|
|
708
708
|
}
|
|
709
709
|
let item_list=[];
|
|
710
710
|
for(let a=0;a<option.category_count;a++){
|
|
711
|
-
item_list.push(
|
|
711
|
+
item_list.push(Category_Logic.get_test(option));
|
|
712
712
|
}
|
|
713
713
|
return item_list;
|
|
714
714
|
};
|
|
@@ -745,9 +745,6 @@ class Category_Logic {
|
|
|
745
745
|
};
|
|
746
746
|
static get_title_by_type = (data_type) => {
|
|
747
747
|
switch (data_type) {
|
|
748
|
-
case DataType.EVENT:
|
|
749
|
-
return "Event";
|
|
750
|
-
break;
|
|
751
748
|
case DataType.PAGE:
|
|
752
749
|
return "Page";
|
|
753
750
|
break;
|