biz9-logic 4.0.37 → 4.0.38
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 +11 -1
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -80,7 +80,16 @@ class Product{
|
|
|
80
80
|
}
|
|
81
81
|
return product;
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
static get_test_list=(option)=>{
|
|
84
|
+
if(!option){
|
|
85
|
+
option={product_count:10};
|
|
86
|
+
}
|
|
87
|
+
let item_list=[];
|
|
88
|
+
for(let a=0;a<option.product_count;a++){
|
|
89
|
+
item_list.push(Product.get_test(option));
|
|
90
|
+
}
|
|
91
|
+
return item_list;
|
|
92
|
+
};
|
|
84
93
|
static get_test_list_by_category = (option) =>{
|
|
85
94
|
let product_list = [];
|
|
86
95
|
let category_count = 9;
|
|
@@ -108,6 +117,7 @@ class Product{
|
|
|
108
117
|
}
|
|
109
118
|
return [category_list,product_list]
|
|
110
119
|
};
|
|
120
|
+
|
|
111
121
|
}
|
|
112
122
|
class Service{
|
|
113
123
|
static get_test = (option) =>{
|