[TOC]
微信公眾平臺配置
公共配置
- 公眾號設置 -> 功能設置下面的:網(wǎng)頁授權域名,JS接口安全域名,業(yè)務域名
網(wǎng)頁授權域名和JS接口安全域名、業(yè)務域名填寫的是靜態(tài)頁面發(fā)布域名
業(yè)務配置
- product.properties中的website.domain配置靜態(tài)頁面地址。
如果靜態(tài)地址域名根目錄下不能直接訪問index頁面,需要更改程序MenuManager中程序
- 綁定服務器
/wei-xin/{id},其中id指的是公司的id - 創(chuàng)建菜單url
/menu/create/{id}參數(shù) key:固定值
YXT_MENU_KEY_V001-
參數(shù)menus:
// menus key和menus可以不用傳遞 { "button": [ { "key": "USE_CAR_SKILL_V001", "name": "用車技巧", "type": "click" }, { "name": "螞蟻車險", "sub_button": [ { "name": "車螞蟻", "type": "view", "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx06329272e094ed1b&redirect_uri=https%3A%2F%2F15658898635.ittun.com%2Fhtml%2Findex.html&response_type=code&scope=snsapi_userinfo&state=Y1519#wechat_redirect" } ] }, { "name": "我的", "type": "view", "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx06329272e094ed1b&redirect_uri=https%3A%2F%2F15658898635.ittun.com%2Fhtml%2Fmine.html&response_type=code&scope=snsapi_userinfo&state=Y1419#wechat_redirect" } ] }