房间分享参数修改
This commit is contained in:
@@ -19,7 +19,10 @@ public interface IShareModel extends IBaseCore {
|
||||
|
||||
Single<String> shareH5(WebJsBeanInfo.DataBean webViewInfo, Platform platform, boolean httpsUrl);
|
||||
|
||||
Single<String> shareRoom(Platform platform, long roomUid, String title, String avatar);
|
||||
Single<String> shareRoom(Platform platform,
|
||||
long roomUid,
|
||||
long roomId,
|
||||
String title, String room_avatar);
|
||||
|
||||
Single<String> shareFamily(Platform platform,
|
||||
String familyId,
|
||||
|
@@ -23,6 +23,7 @@ import com.yizhuan.xchat_android_library.net.rxnet.RxNet;
|
||||
import com.yizhuan.xchat_android_library.utils.ResUtil;
|
||||
import com.yizhuan.xchat_android_library.utils.SingleToastUtil;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.util.HashMap;
|
||||
|
||||
import cn.sharesdk.facebook.Facebook;
|
||||
@@ -135,7 +136,10 @@ public class ShareModel extends BaseModel implements IShareModel {
|
||||
* @param title 标题
|
||||
*/
|
||||
@Override
|
||||
public Single<String> shareRoom(Platform platform, final long roomUid, String title, String avatar) {
|
||||
public Single<String> shareRoom(Platform platform,
|
||||
final long roomUid,
|
||||
long roomId,
|
||||
String title, String room_avatar) {
|
||||
return Single.create(new SingleOnSubscribe<String>() {
|
||||
@Override
|
||||
public void subscribe(SingleEmitter<String> emitter) throws Exception {
|
||||
@@ -143,12 +147,13 @@ public class ShareModel extends BaseModel implements IShareModel {
|
||||
if (platform != null) {
|
||||
|
||||
Platform.ShareParams sp = new Platform.ShareParams();
|
||||
sp.setImageUrl(avatar);
|
||||
|
||||
String tmpSiteUrl = UriProvider.IM_SERVER_URL + XChatConstants.SHARE_ROOM_URL + AuthModel.get().getCurrentUid() + "&uid=" + roomUid + "&ROOM_UID=" + roomUid;
|
||||
|
||||
final String siteUrl = tmpSiteUrl;
|
||||
sp.setImageUrl(room_avatar);
|
||||
|
||||
final String siteUrl = UriProvider.IM_SERVER_URL + XChatConstants.SHARE_ROOM_URL +
|
||||
AuthModel.get().getCurrentUid() + "&uid=" + roomUid + "&room_name=" +
|
||||
URLEncoder.encode(title, "utf8") + "&room_id=" + roomId + "&room_avatar=" +
|
||||
URLEncoder.encode(room_avatar, "utf8") + "&share_name=" +
|
||||
URLEncoder.encode( UserModel.get().getCacheLoginUserInfo().getNick(), "utf8");
|
||||
|
||||
//facebook
|
||||
if (platform.getName().equals(Facebook.NAME)) {
|
||||
|
Reference in New Issue
Block a user