biz9-logic 4.0.39 → 4.0.41
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 -3
- package/package.json +1 -1
- package/test.js +8 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -276,8 +276,6 @@ class Field{
|
|
|
276
276
|
if(!option.value_count){
|
|
277
277
|
option.value_count = 10;
|
|
278
278
|
}
|
|
279
|
-
console.log('rrr');
|
|
280
|
-
console.log(option.value_count);
|
|
281
279
|
for(let b = 1;b<parseInt(option.value_count);b++){
|
|
282
280
|
item['value_'+String(b)] = 'value ' + String(b);
|
|
283
281
|
}
|
|
@@ -674,7 +672,7 @@ class Category {
|
|
|
674
672
|
DataItem.get_new(DataType.CATEGORY,0),
|
|
675
673
|
DataItem.get_new(DataType.CATEGORY,0),
|
|
676
674
|
Field.get_test("Category " +Number.get_id()));
|
|
677
|
-
category.type = Category.get_category_list()[Number.get_id(
|
|
675
|
+
category.type = Category.get_category_list()[Number.get_id(Category.get_category_list().length-1)].data_type;
|
|
678
676
|
return category;
|
|
679
677
|
}
|
|
680
678
|
static get_test_list=(option)=>{
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -62,9 +62,15 @@ describe("connect", () => {
|
|
|
62
62
|
//Log.w("BLog_Post_section_1_section_1_section_1",blog_post.section_1.section_1.section_1);
|
|
63
63
|
/* --BLOG_POST--END */
|
|
64
64
|
|
|
65
|
+
/* --CATEGORY--START */
|
|
66
|
+
let category_list=Category.get_test_list({category_count:5,product_count:9,get_value:false,get_item:false});
|
|
67
|
+
Log.w('category_list',category_list);
|
|
68
|
+
/* --CATEGORY--END */
|
|
69
|
+
|
|
70
|
+
|
|
65
71
|
/* --PRODUCT--START */
|
|
66
|
-
let product_list=Product.get_test_list({category_count:5,product_count:9,get_value:false,get_item:false});
|
|
67
|
-
Log.w('product_list',product_list);
|
|
72
|
+
//let product_list=Product.get_test_list({category_count:5,product_count:9,get_value:false,get_item:false});
|
|
73
|
+
//Log.w('product_list',product_list);
|
|
68
74
|
//let [category_list,product_list]=Product.get_test_list_by_category({category_count:5,product_count:9});
|
|
69
75
|
//Log.w('category_list',category_list);
|
|
70
76
|
|