mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	修复企业号中 WxCpMessage转json时丢失safe属性的问题#196
This commit is contained in:
		| @ -61,6 +61,10 @@ public class WxCpMessageGsonAdapter implements JsonSerializer<WxCpMessage> { | ||||
|       messageJson.add("voice", voice); | ||||
|     } | ||||
|  | ||||
|     if (StringUtils.isNotBlank(message.getSafe())) { | ||||
|       messageJson.addProperty("safe", message.getSafe()); | ||||
|     } | ||||
|  | ||||
|     if (WxConsts.CUSTOM_MSG_VIDEO.equals(message.getMsgType())) { | ||||
|       JsonObject video = new JsonObject(); | ||||
|       video.addProperty("media_id", message.getMediaId()); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang