biz9-logic 4.0.39 → 4.0.40
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 -1
- package/package.json +1 -1
- package/test.js +8 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -674,7 +674,7 @@ class Category {
|
|
|
674
674
|
DataItem.get_new(DataType.CATEGORY,0),
|
|
675
675
|
DataItem.get_new(DataType.CATEGORY,0),
|
|
676
676
|
Field.get_test("Category " +Number.get_id()));
|
|
677
|
-
category.type = Category.get_category_list()[Number.get_id(
|
|
677
|
+
category.type = Category.get_category_list()[Number.get_id(Category.get_category_list().length-1)].data_type;
|
|
678
678
|
return category;
|
|
679
679
|
}
|
|
680
680
|
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
|
|