mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 02:28:25 +08:00 
			
		
		
		
	修复WxMenuRule一个变态属性的问题 #136
This commit is contained in:
		| @ -70,7 +70,9 @@ public class WxMenuGsonAdapter implements JsonSerializer<WxMenu>, JsonDeserializ | |||||||
|  |  | ||||||
|   private WxMenuRule convertToRule(JsonObject json) { |   private WxMenuRule convertToRule(JsonObject json) { | ||||||
|     WxMenuRule menuRule = new WxMenuRule(); |     WxMenuRule menuRule = new WxMenuRule(); | ||||||
|     menuRule.setTagId(GsonHelper.getString(json,"tag_id")); |     //变态的微信接口,这里居然反人类的使用和序列化时不一样的名字 | ||||||
|  |     //menuRule.setTagId(GsonHelper.getString(json,"tag_id")); | ||||||
|  |     menuRule.setTagId(GsonHelper.getString(json, "group_id")); | ||||||
|     menuRule.setSex(GsonHelper.getString(json, "sex")); |     menuRule.setSex(GsonHelper.getString(json, "sex")); | ||||||
|     menuRule.setCountry(GsonHelper.getString(json, "country")); |     menuRule.setCountry(GsonHelper.getString(json, "country")); | ||||||
|     menuRule.setProvince(GsonHelper.getString(json, "province")); |     menuRule.setProvince(GsonHelper.getString(json, "province")); | ||||||
|  | |||||||
| @ -16,8 +16,7 @@ import org.slf4j.LoggerFactory; | |||||||
|  */ |  */ | ||||||
| public class WxMpMenuServiceImpl implements WxMpMenuService { | public class WxMpMenuServiceImpl implements WxMpMenuService { | ||||||
|   private static final String API_URL_PREFIX = "https://api.weixin.qq.com/cgi-bin/menu"; |   private static final String API_URL_PREFIX = "https://api.weixin.qq.com/cgi-bin/menu"; | ||||||
|   private static Logger log = LoggerFactory |   private static Logger log = LoggerFactory.getLogger(WxMpMenuServiceImpl.class); | ||||||
|     .getLogger(WxMpMenuServiceImpl.class); |  | ||||||
|  |  | ||||||
|   private WxMpService wxMpService; |   private WxMpService wxMpService; | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang