mirror of
https://github.com/OpenFlutter/fluwx.git
synced 2025-05-17 23:36:13 +08:00
wechat image share
This commit is contained in:
@ -134,7 +134,7 @@ internal interface FluwxShareHandler : CoroutineScope {
|
||||
sourceByteArray.isEmpty() -> {
|
||||
WXImageObject()
|
||||
}
|
||||
sourceByteArray.size > 500 * 1024 -> {
|
||||
else -> {
|
||||
WXImageObject().apply {
|
||||
if (supportFileProvider && targetHigherThanN) {
|
||||
setImagePath(getFileContentUri(sourceByteArray.toCacheFile(context, sourceImage.suffix)))
|
||||
@ -147,9 +147,6 @@ internal interface FluwxShareHandler : CoroutineScope {
|
||||
}
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
WXImageObject(sourceByteArray)
|
||||
}
|
||||
}
|
||||
val msg = WXMediaMessage()
|
||||
msg.mediaObject = imageObject
|
||||
|
Reference in New Issue
Block a user