biz9-logic 4.8.388 → 4.9.2
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 +1 -4
- package/package.json +1 -1
- package/test.js +10 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -144,12 +144,9 @@ class Demo_Logic {
|
|
|
144
144
|
if(option.items){
|
|
145
145
|
item_title_list = option.items.split(',');
|
|
146
146
|
}else{
|
|
147
|
-
for(let a = 0;a<item.categorys.length;a++){
|
|
148
147
|
for(let b = 1;b<option.item_count+1;b++){
|
|
149
|
-
|
|
150
|
-
item_title_list.push(title+" " +Type.get_title(item.categorys[a].category)+" "+ num);
|
|
148
|
+
item_title_list.push(title+" " +Type.get_title(item.categorys[Num.get_id(item.categorys.length)].category)+" "+ b);
|
|
151
149
|
}
|
|
152
|
-
}
|
|
153
150
|
}
|
|
154
151
|
for(const cat_item of item.categorys){
|
|
155
152
|
cat_item.items = [];
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -34,8 +34,16 @@ describe("connect", () => {
|
|
|
34
34
|
let demo_type_1 = Demo_Logic.get_new_type('Computer',{
|
|
35
35
|
get_category:true,category_count:9,category_data_type:DataType.PRODUCT,categorys:'',
|
|
36
36
|
get_item:true,item_count:9,item_data_type:DataType.PRODUCT,items:null});
|
|
37
|
-
Log.w('
|
|
38
|
-
Log.w('demo_type_1_categorys',demo_type_1.categorys);
|
|
37
|
+
//Log.w('demo_type_1_categorys',demo_type_1.categorys);
|
|
38
|
+
//Log.w('demo_type_1_categorys',demo_type_1.categorys[0]);
|
|
39
|
+
|
|
40
|
+
//Log.w('demo_type_1',demo_type_1);
|
|
41
|
+
let total = 0;
|
|
42
|
+
for(a=0;a<demo_type_1.categorys.length;a++){
|
|
43
|
+
console.log(demo_type_1.categorys[a]);
|
|
44
|
+
total = total+1;
|
|
45
|
+
}
|
|
46
|
+
Log.w('total',total);
|
|
39
47
|
|
|
40
48
|
console.log('CONNECT-END');
|
|
41
49
|
call();
|