biz9-logic 4.6.7 → 4.7.1

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='4.6.7'
1
+ VERSION='4.7.1'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -603,13 +603,15 @@ class DataItem {
603
603
  return r_list;
604
604
  }
605
605
  }
606
- class Product_Url {
606
+ class Blog_Post_Url {
607
607
  static get = (biz9_config,title_url,params) => {
608
- let action_url="product/get/"+title_url;
608
+ let action_url="blog_post/get/"+title_url;
609
609
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
610
610
  };
611
- static get_page = (biz9_config,params) => {
612
- let action_url="product/get_page";
611
+ }
612
+ class Product_Url {
613
+ static get = (biz9_config,title_url,params) => {
614
+ let action_url="product/get/"+title_url;
613
615
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
614
616
  };
615
617
  }
@@ -618,38 +620,16 @@ class Service_Url {
618
620
  let action_url="service/get/"+title_url;
619
621
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
620
622
  };
621
- static get_page = (biz9_config,params) => {
622
- let action_url="service/get_page";
623
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
624
- };
625
623
  }
626
624
  class Gallery_Url {
627
625
  static get = (biz9_config,title_url,params) => {
628
626
  let action_url="gallery/get/"+title_url;
629
627
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
630
628
  };
631
- static get_page = (biz9_config,params) => {
632
- let action_url="gallery/get_page";
633
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
634
- };
635
- }
636
- class Blog_Post_Url {
637
- static get = (biz9_config,title_url,params) => {
638
- let action_url="blog_post/get/"+title_url;
639
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
640
- };
641
- static get_page = (biz9_config,params) => {
642
- let action_url="blog_post/get_page";
643
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
644
- };
645
629
  }
646
630
  class Category_Url {
647
- static get_list = (biz9_config,type,params) => {
648
- let action_url="category/get_list/"+type;
649
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
650
- };
651
- static get_page = (biz9_config,params) => {
652
- let action_url="category/get_page";
631
+ static get = (biz9_config,title_url,params) => {
632
+ let action_url="category/get_page/"+title_url;
653
633
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
654
634
  };
655
635
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.6.7",
3
+ "version": "4.7.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -36,7 +36,7 @@ describe("connect", () => {
36
36
  let data_type = DataType.PRODUCT;
37
37
  let id = "123";
38
38
  //let cloud_url = BiZ_Url.get_item(biz9_config,data_type,id,"&cool=1");
39
- let cloud_url = Category_Url.get_page(biz9_config);
39
+ let cloud_url = Category_Url.get_page(biz9_config,'cool');
40
40
  Log.w('connect_url',cloud_url);
41
41
  console.log('GET-URL-SUCCESS');
42
42
  //call()