|
|
@@ -376,6 +376,18 @@ class _ShareAlertContentState extends State<_ShareAlertContent> { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
int count = 0; |
|
|
|
if (_shareDataModel.poster != null) { |
|
|
|
count++; |
|
|
|
} |
|
|
|
count += (_shareDataModel?.image?.length ?? 0); |
|
|
|
// 多图分享 |
|
|
|
if (count > 1) { |
|
|
|
_shareMultipleImages(item.type); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.type == 'wx') { |
|
|
|
_shareByMob(ShareSDKPlatforms.wechatSession); |
|
|
|
} else if (item.type == 'pyq') { |
|
|
@@ -403,11 +415,14 @@ class _ShareAlertContentState extends State<_ShareAlertContent> { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Loading.show(context); |
|
|
|
Timer(Duration(milliseconds: 2000), () { |
|
|
|
Loading.dismiss(); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SSDKMap params; |
|
|
|
if (_shareDataModel.poster != null) { |
|
|
|
String path = await _savePoster(); |
|
|
|