Merge branch '2.0' of https://git.oschina.net/dreamhua/GH-ASSISTv1.45 into 2.0
This commit is contained in:
@ -233,11 +233,14 @@ public class ShareUtils {
|
||||
wechatParams.setText(shareNewsTitle);
|
||||
}else {
|
||||
if (isPlugin){
|
||||
wechatParams.setText("向你推荐:" + shareGameName + "(光环加速版)");
|
||||
wechatParams.setTitle("向你推荐");
|
||||
wechatParams.setText(shareGameName + "(光环加速版)");
|
||||
}else {
|
||||
wechatParams.setText("向你推荐:" + shareGameName);
|
||||
wechatParams.setTitle("向你推荐");
|
||||
wechatParams.setText(shareGameName);
|
||||
}
|
||||
}
|
||||
wechatParams.setShareType(Platform.SHARE_WEBPAGE);
|
||||
wechatParams.setImageUrl(shareIcon);
|
||||
wechatParams.setUrl(shareUrl);
|
||||
|
||||
@ -271,14 +274,15 @@ public class ShareUtils {
|
||||
WechatMoments.ShareParams wechatMomentsParams = new WechatMoments.ShareParams();
|
||||
|
||||
if (shareNewsTitle != null){
|
||||
wechatMomentsParams.setText(shareNewsTitle);
|
||||
wechatMomentsParams.setTitle(shareNewsTitle);
|
||||
}else {
|
||||
if (isPlugin){
|
||||
wechatMomentsParams.setText("向你推荐:" + shareGameName + "(光环加速版)");
|
||||
wechatMomentsParams.setTitle("向你推荐:" + shareGameName + "(光环加速版)");
|
||||
}else {
|
||||
wechatMomentsParams.setText("向你推荐:" + shareGameName);
|
||||
wechatMomentsParams.setTitle("向你推荐:" + shareGameName);
|
||||
}
|
||||
}
|
||||
wechatMomentsParams.setShareType(Platform.SHARE_WEBPAGE);
|
||||
wechatMomentsParams.setImageUrl(shareIcon);
|
||||
wechatMomentsParams.setUrl(shareUrl);
|
||||
|
||||
@ -307,12 +311,12 @@ public class ShareUtils {
|
||||
ShortMessage.ShareParams shortMessageParams = new ShortMessage.ShareParams();
|
||||
|
||||
if (shareNewsTitle != null){
|
||||
shortMessageParams.setText(shareNewsTitle);
|
||||
shortMessageParams.setText(shareNewsTitle + shareUrl);
|
||||
}else {
|
||||
if (isPlugin){
|
||||
shortMessageParams.setText("向你推荐:" + shareGameName + "(光环加速版)");
|
||||
shortMessageParams.setText("向你推荐:" + shareGameName + "(光环加速版)" + shareUrl);
|
||||
}else {
|
||||
shortMessageParams.setText("向你推荐:" + shareGameName);
|
||||
shortMessageParams.setText("向你推荐:" + shareGameName + shareUrl);
|
||||
}
|
||||
}
|
||||
shortMessageParams.setUrl(shareUrl);
|
||||
|
||||
Reference in New Issue
Block a user