[TOC]
微信公眾平臺(tái)配置
公共配置
- 公眾號(hào)設(shè)置 -> 功能設(shè)置下面的:網(wǎng)頁(yè)授權(quán)域名,JS接口安全域名,業(yè)務(wù)域名
網(wǎng)頁(yè)授權(quán)域名和JS接口安全域名取逾、業(yè)務(wù)域名填寫(xiě)的是靜態(tài)頁(yè)面發(fā)布域名
業(yè)務(wù)配置
- product.properties中的website.domain配置靜態(tài)頁(yè)面地址。
如果靜態(tài)地址域名根目錄下不能直接訪問(wèn)index頁(yè)面剥汤,需要更改程序MenuManager中程序
- 綁定服務(wù)器
/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": "螞蟻車險(xiǎn)", "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" } ] }