可以在分享链接后面添加不影响链接内容显示的标识(可采用时间戳)。 例如:分享链接+"&webpage=系统时间戳"
val msg = WXMediaMessage(mediaObject)
if (title != null) {
msg.title = title
}
if (description != null) {
msg.description = description
}
if (thumb != null) {
msg.thumbData = bmpToByteArrays(thumb, true)
}
thumb!!.recycle()
//构造一个Req
val req = SendMessageToWX.Req()
req.transaction = if(transaction.isNullOrEmpty()) System.currentTimeMillis().toString() else "$transaction${System.currentTimeMillis()}"
req.message = msg
req.userOpenId = Constants.APP_ID
req.scene = scene
api!!.sendReq(req)