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 CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='8.6.8'
1
+ VERSION='8.7.2'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
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
- let num = parseInt(a+b);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.388",
3
+ "version": "4.9.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
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('demo_type_1',demo_type_1);
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();