Browse Source

云照护数据归集

LAPTOP-KB9HII50\70708 2 years ago
parent
commit
840b28d7dc

+ 1 - 1
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/endpoint/wechat/WechatMenuController.java

@ -40,7 +40,7 @@ public class WechatMenuController extends EnvelopRestEndpoint {
    private JdbcTemplate jdbcTemplate;
    private JdbcTemplate jdbcTemplate;
    @ApiOperation(value = "微信菜单创建-读数据库")
    @ApiOperation(value = "微信菜单创建-读数据库")
    @PostMapping(value = "/menu/createByMysql")
    @PostMapping(value = "/open/createByMysql")
    public String createByMysql() {
    public String createByMysql() {
        try {
        try {
            WxAccessTokenDO wxAccessTokenDO = wxAccessTokenService.getWxAccessTokenById(wechatId);
            WxAccessTokenDO wxAccessTokenDO = wxAccessTokenService.getWxAccessTokenById(wechatId);

+ 7 - 0
svr/svr-cloud-care/src/main/resources/wechat/weixin_menu.txt

@ -4,6 +4,13 @@
	  "name":"进入云照护",
	  "name":"进入云照护",
	  "type":"view",
	  "type":"view",
      "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2c55f5b7b2f3cb56&redirect_uri=https%3A%2F%2Fzhyzh.gongshu.gov.cn%2Fmedical-care-patient%2Fhome%2Findex&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
      "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2c55f5b7b2f3cb56&redirect_uri=https%3A%2F%2Fzhyzh.gongshu.gov.cn%2Fmedical-care-patient%2Fhome%2Findex&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
   },
   {
   	  "name":"线上商城",
   	  "type":"miniprogram",
      "url":"http://mp.weixin.qq.com",
      "appid": "wxd845553a12f84efc",
      "pagepath": "pages/index/index"
   }
   }
]
]
}
}