public void ShareWebpage(string title, string text, string url, string imageUrl) { // ShareContent content = new ShareContent(); //content.SetText("this is a test string."); //content.SetImageUrl("http://ww3.sinaimg.cn/mw690/be159dedgw1evgxdt9h3fj218g0xctod.jpg"); //content.SetTitle("test title"); //// content.SetTitleUrl("http://www.mob.com"); //// content.SetSite("Mob-ShareSDK"); //// content.SetSiteUrl("http://www.mob.com"); //content.SetUrl("http://qjsj.youzu.com/jycs/"); //// content.SetComment("test description"); //// content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3"); //content.SetShareType(ContentType.Webpage); //ssdk.ShareContent(PlatformType.WeChat, content); //string imagePath = WriteShareImage(texture); //if (!string.IsNullOrEmpty(imagePath)) //{ ShareContent content = new ShareContent(); content.SetTitle(title); content.SetText(text); content.SetUrl(url); content.SetImageUrl(imageUrl); content.SetTitleUrl(url); //content.SetImagePath(imagePath); content.SetShareType(ContentType.Webpage); shareSDK.ShowPlatformList(null, content, 100, 100); //} }
// Use this for initialization void Start() { ShareContent content = new ShareContent(); content.SetText("this is a test string."); content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg"); content.SetTitle("test title"); content.SetShareType(ContentType.Image); ssdk.shareHandler = ShareResultHandler; //Share by the menu ssdk.ShowPlatformList(null, content, 100, 100); /* * //share by the content editor * ssdk.ShowShareContentEditor(PlatformType.SinaWeibo, content); * * //share directly * ssdk.ShareContent(PlatformType.SinaWeibo, content); */ ssdk.authHandler = AuthResultHandler; ssdk.Authorize(PlatformType.SinaWeibo); ssdk.showUserHandler = GetUserInfoResultHandler; ssdk.GetUserInfo(PlatformType.SinaWeibo); }
private void EventInit() { UIEventListener.Get(GameUtility.FindDeepChild(gameObject, "Btn_Close").gameObject).onClick = delegate { ViewCenter.Instance.GetPanel <Panel_MessageBox>(PanelType.MessageBox).ShowMessageBox(Tags.TextPrompt.sIsLeaveRoom, "", delegate { DealCommand.Instance.SendLeaveRoom(); }, "", null); }; UIEventListener.Get(GameUtility.FindDeepChild(gameObject, "Btn_DismissRoom").gameObject).onClick = delegate { if (DataCenter.Instance.gamedata.IsFangZhu) { ViewCenter.Instance.GetPanel <Panel_MessageBox>(PanelType.MessageBox).ShowMessageBox(Tags.TextPrompt.sIsDismissRoom, "", delegate { DealCommand.Instance.SendDissolveRoom(); }, "", null); } }; UIEventListener.Get(GameUtility.FindDeepChild(gameObject, "Btn_InviteFriends").gameObject).onClick = delegate { ShareContent content = new ShareContent(); content.SetText(Tags.Title_Name + ",快来和我一起玩游戏吧!\n房间号:" + DataCenter.Instance.gamedata.RoomNum + "\n玩法:" + label_当前玩法.text); content.SetImageUrl("http://ww3.sinaimg.cn/mw690/be159dedgw1evgxdt9h3fj218g0xctod.jpg"); content.SetTitle(Tags.Title_Name + "!房号:" + DataCenter.Instance.gamedata.RoomNum); content.SetTitleUrl("http://fir.im/1946"); content.SetSite("Mob-ShareSDK"); content.SetSiteUrl("http://fir.im/1946"); content.SetUrl("http://fir.im/1946"); content.SetComment("描述"); //content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3"); content.SetShareType(ContentType.Webpage); WeiXinCenter.Instance.ShareWeChatFriend(content); }; }
public static void ShowShareMenu() { ShareContent content = new ShareContent(); content.SetText("视觉美景+智能呈现 只留精彩,不留遗憾"); content.SetImageUrl("https://gitee.com/visizencom/ar_game/raw/054c0ae483c0b9a65319815d5d76b92aea4668fc/Images/Logo.png"); content.SetTitle("AR游"); content.SetShareType(ContentType.Webpage); content.SetTitleUrl("http://download.vszapp.com"); content.SetUrl("http://download.vszapp.com"); // ShareContent content = new ShareContent(); // content.SetText("视觉美景+智能呈现 只留精彩,不留遗憾"); // content.SetTitle("AR游"); // content.SetImageUrl("https://gitee.com/visizencom/ar_game/raw/054c0ae483c0b9a65319815d5d76b92aea4668fc/Images/Logo.png"); // content.SetUrl("http://download.vszapp.com"); // content.SetShareType(ContentType.Webpage); // ssdk.ShareContent (PlatformType.WeChatMoments, content); ShareContent SinaShareParams = new ShareContent(); SinaShareParams.SetText("视觉美景+智能呈现 只留精彩,不留遗憾"); SinaShareParams.SetImageUrl("https://gitee.com/visizencom/ar_game/raw/054c0ae483c0b9a65319815d5d76b92aea4668fc/Images/Logo.png"); SinaShareParams.SetShareType(ContentType.Webpage); SinaShareParams.SetObjectID("SinaID"); content.SetShareContentCustomize(PlatformType.SinaWeibo, SinaShareParams); //通过分享菜单分享 ssdk.ShowPlatformList(null, content, 100, 100); }
void doShare(PlatformType type) { // 显示分享菜单 ShareContent content = new ShareContent(); content.SetText(Message.getText("gameTitle")); content.SetImageUrl("https://xuerong.github.io/mazeAndPacman/resource/icon.png"); content.SetTitle(Message.getText("gameTitle")); content.SetTitleUrl("https://xuerong.github.io/mazeAndPacman/"); // content.SetSite("迷宫与吃豆人"); // content.SetSiteUrl("https://xuerong.github.io/mazeAndPacman/"); content.SetUrl("https://xuerong.github.io/mazeAndPacman/"); // content.SetComment("迷宫与吃豆人"); // content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3"); // content.SetFilePath("https://xuerong.github.io/mazeAndPacman/resource/mi.apk"); content.SetShareType(ContentType.Webpage); //通过分享菜单分享 // ssdk.ShowPlatformList (null, content, 100, 100); //直接通过编辑界面分享 // ssdk.ShowShareContentEditor (PlatformType.WeChat, content); // // //直接分享 ssdk.ShareContent(type, content); shareWeChat1.transform.parent.gameObject.SetActive(false); }
void SetShareContent() { content.SetText(shareText); content.SetImageUrl(Mediator.GetValue("shareImageUrl").ToString() + shareImageName + ".jpg"); content.SetTitle(shareTitle); content.SetUrl(Mediator.GetValue("shareUrl").ToString()); content.SetShareType(ContentType.Image); }
/// <summary> /// 分享图片URL /// </summary> /// <param name="text"></param> /// <param name="imageURL"></param> public void ShareImageURL(string text, string imageURL) { ShareContent content = new ShareContent(); content.SetTitle(text); content.SetImageUrl(imageURL); content.SetShareType(ContentType.Image); ssdk.ShowPlatformList(new PlatformType[] { PlatformType.WeChat, PlatformType.WeChatMoments }, content, 100, 100); }
public void inviteFriend() { RoomCreateVo roomvo = GlobalDataScript.roomVo; if (GlobalDataScript.roomVo != null) { GlobalDataScript.totalTimes = roomvo.realRoundNumber(); GlobalDataScript.surplusTimes = roomvo.realRoundNumber(); string str = ""; str += "南京麻将,"; if (roomvo.paofen > 0) { str += "跑" + roomvo.realPaofen() + ","; } if (roomvo.roundtype == 0) { str += "进园子"; str += " " + roomvo.realYuanzishu() + ","; str += roomvo.realYuanziRule() + "家干,"; } else { str += "敞开头,"; str += "圈数:" + roomvo.realRoundNumber() + ","; } if (roomvo.zashu > 0) { str += "砸" + roomvo.realZaShu() + ","; } if (roomvo.zhanzhuangbi) { str += "比下胡,"; } /* * if (roomvo.guozhuangbi) { * str += "过庄比,"; * } */ str += "有胆,你就来!"; string title = "点点南京麻将 " + "房间号:" + roomvo.roomId; ShareContent customizeShareParams = new ShareContent(); customizeShareParams.SetTitle(title); customizeShareParams.SetText(str); customizeShareParams.SetUrl(APIS.ShareUrl); customizeShareParams.SetImageUrl(APIS.ImageUrl); customizeShareParams.SetShareType(ContentType.Webpage); customizeShareParams.SetObjectID(""); shareSdk.ShowShareContentEditor(PlatformType.WeChat, customizeShareParams); } }
public void DoShareTestFriend() { ShareContent content = new ShareContent(); content.SetText("潮汕麻将四人玩法\n邀请胶己人一起来麻将,三缺一就等你了"); content.SetImageUrl("http://www.27toy.com/images/108.png"); content.SetTitle("胶己人雀友会"); content.SetUrl("http://27toy.com/"); content.SetShareType(ContentType.Webpage); ssdk.ShareContent(PlatformType.WeChat, content); }
public void fenxiang_WX() { ShareContent content = new ShareContent(); content.SetTitle("标题"); content.SetText("内容"); content.SetImageUrl("https://www.gamersky.com/showimage/id_gamersky.shtml?http://img1.gamersky.com/image2019/07/20190725_ls_red_141_2/gamersky_042origin_083_2019725182972C.jpg"); content.SetUrl(""); content.SetShareType(ContentType.Image); shareSdk.ShareContent(PlatformType.WeChat, content); }
public static void shareWeChatMomentsBtnClick(string shareContent, string imageUrl, string title, string downUrl) { ShareContent content = new ShareContent(); content.SetText(shareContent); content.SetImageUrl(imageUrl); content.SetTitle(title); content.SetUrl(downUrl); content.SetShareType(ContentType.Webpage); ssdk.ShareContent(PlatformType.WeChatMoments, content); }
void TypeIsSina(string Title, string Text, string ImageURL, string URL, int contentType, PlatformType ID) { ShareContent content = new ShareContent(); content.SetTitle(Title); content.SetText(Text); content.SetImageUrl(ImageURL); content.SetUrl(URL); content.SetShareType(contentType); ssdk.ShareContent(ID, content); Debug.Log("AAAAA Test C# 通过分享菜单分享Sina" + Title + Text + ImageURL + URL + ID); }
// 分享接口 public void ShareGames(PlatformType platformType) { ShareContent customizeShareParams = new ShareContent(); customizeShareParams.SetText("给你发了一个29元大红包,快来领取你的红包!"); customizeShareParams.SetUrl("http://www.baidu.com"); customizeShareParams.SetShareType(ContentType.Webpage); customizeShareParams.SetObjectID(""); customizeShareParams.SetImageUrl("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1527429848373&di=33c254c11436d40b23a2390ffe249845&imgtype=0&src=http%3A%2F%2Fa.hiphotos.baidu.com%2Fzhidao%2Fwh%253D680%252C800%2Fsign%3D4cf11667fb1f3a295a9dddc8a1159009%2F8644ebf81a4c510f195c55a36b59252dd52aa5eb.jpg"); customizeShareParams.SetShareContentCustomize(platformType, customizeShareParams); shareSdk.ShareContent(platformType, customizeShareParams); }
public void OnShareWeChatMoments() { ShareContent content = new ShareContent(); //这个地方要参考不同平台需要的参数 可以看ShareSDK提供的 分享内容参数表.docx content.SetTitle("西凉麻将3D"); //分享标题 content.SetText("正宗金昌甩九幺——西凉3D麻将,你也来试试吧!"); //分享文字 content.SetImageUrl("http://pic.dafuvip.com/templates/majiang/images/bj-big.jpg"); //分享图片 content.SetUrl("http://www.dafuv.com/wyxlmj?view=1"); //分享网址 content.SetShareType(ContentType.Webpage); //指定平台直接分享 shareSdk.ShowShareContentEditor(PlatformType.WeChatMoments, content); }
public void fenxiang__ALL() //所有界面 { ShareContent content = new ShareContent(); content.SetTitle("测试"); content.SetText("测试文本"); content.SetTitleUrl( "https://www.gamersky.com/showimage/id_gamersky.shtml?http://img1.gamersky.com/image2019/07/20190725_ls_red_141_2/gamersky_042origin_083_2019725182972C.jpg"); content.SetImageUrl( "https://www.gamersky.com/showimage/id_gamersky.shtml?http://img1.gamersky.com/image2019/07/20190725_ls_red_141_2/gamersky_042origin_083_2019725182972C.jpg"); content.SetShareType(ContentType.Image); shareSdk.ShowPlatformList(null, content, 100, 100); }
public void fenxiang__QQ() //QQ分享 { ShareContent content = new ShareContent(); content.SetTitle("冬奥会知识比拼"); content.SetText("我获得了所有碎片,你能吗"); content.SetTitleUrl( "https://pan.download.com"); content.SetImageUrl( "https://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&ie=gb18030&word=%B6%AC%D4%CB%BB%E1%BC%AA%CF%E9%CE%EF&fr=ala&ala=1&alatpl=adress&pos=0&hs=2&xthttps=000000"); content.SetShareType(ContentType.Image); shareSdk.ShareContent(PlatformType.QQ, content); }
public void DoShareTable(int tableId, int round, string info) { ShareContent content = new ShareContent(); content.SetText(round + "局潮汕麻将四人玩法\n" + info + "\n" + "邀请胶己人一起来麻将,三缺一就等你了"); content.SetImageUrl("http://www.27toy.com/images/108.png"); content.SetTitle( "房间号:" + tableId); content.SetUrl("http://27toy.com/"); content.SetShareType(ContentType.Webpage); ssdk.ShareContent(PlatformType.WeChat, content); }
/// <summary> /// 设置提交梦想板content /// </summary> /// <param name="title"></param> /// <param name="sharetxt"></param> /// <param name="imgUrl"></param> /// <param name="weburl"></param> public void SetShareDream(string title, string sharetxt, string imgUrl, string weburl) { ShareContent content = new ShareContent(); content.SetTitle(title); content.SetText(sharetxt); content.SetImageUrl(imgUrl); content.SetTitleUrl(weburl); content.SetSite("智富人生"); content.SetSiteUrl(weburl); content.SetUrl(weburl); //content.SetContentType (ContentType.Webpage); content.SetShareType(ContentType.Webpage); dreamShareContent = content; }
//微信分享宣传 public void ShareWeChatMoments(string roomId = null) { // string room = (roomId == null) ? "" : "房间号是:" + roomId; // string text = "齐齐哈尔麻将.快来!" + room; ShareContent content = new ShareContent(); // content.SetTitle("齐齐哈尔麻将"); // content.SetText(text); content.SetImageUrl("http://daqingmj.youhao88.com:8081/DaQingMJ.jpg"); // content.SetUrl("www.daqingmj.youhao88.com:8081/index2.html"); content.SetShareType(ContentType.Image); shareSdk.ShareContent(PlatformType.WeChatMoments, content); }
public void SetShareRoomContent(string title, string sharetxt, string imgUrl, string weburl) { roomShareTxt = sharetxt; ShareContent content = new ShareContent(); content.SetTitle(title); content.SetText(sharetxt); content.SetImageUrl(imgUrl); content.SetTitleUrl(weburl); content.SetSite("智富人生"); content.SetSiteUrl(weburl); content.SetUrl(weburl); content.SetShareType(ContentType.Webpage); roomFightContent = content; }
public void ShareClick() { Debug.Log("Share Click"); var game = gamePlayerController.game; ShareContent content = new ShareContent(); content.SetTitle("房间【" + game.roomNo + "】"); content.SetText("【玩法:AA支付," + game.totalRoundCount + "局,【4,6,8分】,明牌抢庄,闲家推注】"); content.SetImageUrl("http://niu.yhkamani.com:3001/images/icon.png"); content.SetUrl("http://niu.yhkamani.com/share?room=" + game.roomNo); //content.SetUrlDescription("【玩法:AA支付," + game.totalRoundCount + "局,【4,6,8分】,明牌抢庄,闲家推注】"); //content.SetDesc ("【玩法:AA支付," + game.totalRoundCount + "局,【4,6,8分】,明牌抢庄,闲家推注】"); content.SetShareType(ContentType.Webpage); ssdk.ShareContent(PlatformType.WeChat, content); }
private void SdkShareContentRoom(PlatformType platform, string strdesc) { ShareContent content = new ShareContent(); string gamename = ""; content.SetText("金游房卡麻将"); content.SetImageUrl("http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqia1ia8X0cdqEibvoWwKrRBTonZcRSxQgNXJlRg6EULfPzia4kFd1uicBItwibQ1kqpnmoIyDaUtCE2uFg/132"); content.SetTitle("金游好友局 \n盐城3D麻将<房号:" + "888888" + "> (" + 1 + "局)"); content.SetTitleUrl("http://d.51v.cn/"); content.SetSite("麻友召集令"); content.SetSiteUrl("http://d.51v.cn/"); content.SetUrl("http://d.51v.cn/"); content.SetComment("http://d.51v.cn/"); content.SetShareType(ContentType.Webpage); ssdk.ShareContent(platform, content); }
public void shareHaoYou(PlatformType platformtype) { string title = Application.productName + ""; string str = "深空娱乐——游戏让生活更美好!"; ShareContent customizeShareParams = new ShareContent(); customizeShareParams.SetTitle(title); customizeShareParams.SetText(str); //配置下载地址 customizeShareParams.SetUrl(APIS.baseUrl + "/download/index.html"); //配置分享logo customizeShareParams.SetImageUrl(APIS.baseUrl + "/download/logo.png"); customizeShareParams.SetShareType(ContentType.Webpage); customizeShareParams.SetObjectID(""); shareSdk.ShareContent(platformtype, customizeShareParams); }
//void doLogin() //{ // if (Game.SocketHall.SocketNetTools.Connected) // { // Game.SocketHall.LoginMsg(_opendid, _token, 3); // print("doLogin1" + _opendid + " " + _token); // } // else // { // Game.SocketHall.SocketNetTools.OnConnect -= OnConnect; // Game.SocketHall.SocketNetTools.OnConnect += OnConnect; // Game.InitHallSocket(GlobalConfig.address); // print("doLogin2" + _opendid + " " + _token); // } //} //微信分享房间 public void Share(string roomId = null) { string room = (roomId == null) ? "" : "房间号是:" + roomId; string text = "齐齐哈尔麻将.快来!" + room; ShareContent content = new ShareContent(); content.SetTitle("齐齐哈尔麻将"); content.SetText(text); content.SetImageUrl("http://www.youhao88.com:8081/icon.png"); content.SetUrl("www.qiqihaermj.youhao88.com:8081/index2.html"); content.SetShareType(ContentType.Webpage); shareSdk.ShareContent(PlatformType.WeChat, content); }
//微信分享房间 public void Share(string roomId = null) { string room = (roomId == null) ? "" : "房间号是:" + roomId; string text = "大庆麻将.快来!" + room; ShareContent content = new ShareContent(); content.SetTitle("大庆麻将"); content.SetText(text); content.SetImageUrl("http://daqingmj.youhao88.com:8081/icon.png"); content.SetUrl("daqingmj.youhao88.com:8081/DaQingMJ.html"); content.SetShareType(ContentType.Webpage); shareSdk.ShareContent(PlatformType.WeChat, content); }
public void inviteFriend() { RoomVO rvo = GlobalData.getInstance().roomVO; if (rvo != null) { string title = "铁脚麻将 " + "房间号:" + rvo.roomId; ShareContent s = new ShareContent(); s.SetTitle(title); s.SetText(GameHelper.getHelper().getInviteRuleStr(rvo)); s.SetUrl(Constants.Download_URL); s.SetImageUrl(Constants.ImgUrl + "icon96.png"); s.SetShareType(ContentType.Webpage); s.SetObjectID(""); shareSdk.ShowShareContentEditor(PlatformType.WeChat, s); } }
public void ShareToWeChatMethod() { ShareContent content = new ShareContent(); //(Android only) 隐藏九宫格里面不需要用到的平台(仅仅是不显示平台) //(Android only) 也可以把jar包删除或者把Enabl属性e改成false(对应平台的全部功能将用不了) String[] platfsList = { ((int)PlatformType.QQ).ToString(), ((int)PlatformType.Facebook).ToString(), ((int)PlatformType.TencentWeibo).ToString() }; content.SetHidePlatforms(platfsList); content.SetText("想来挑战一下最新的I wanna 系列吗"); content.SetImageUrl("https://img.tapimg.com/market/lcs/f8f7cc26ddba562add50519262cf2ea0_360.png?imageMogr2/auto-orient/strip"); content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3"); content.SetTitle("I wanna destroy the Cube"); //(Android only) 针对Android绕过审核的多图分享,传图片String数组 // String[] imageArray = { "/sdcard/test.jpg", "http://f1.webshare.mob.com/dimgs/1c950a7b02087bf41bc56f07f7d3572c11dfcf36.jpg", "/sdcard/test.jpg" }; //content.SetImageArray(imageArray); content.SetTitleUrl("https://www.taptap.com/app/146786"); // content.SetSite("Mob-ShareSDK"); content.SetSiteUrl("https://www.taptap.com/app/146786"); content.SetUrl("https://www.taptap.com/app/146786"); // content.SetComment("test description"); //content.SetMusicUrl(""); content.SetShareType(ContentType.Image); //不同平台分享不同内容 ShareContent customizeShareParams = new ShareContent(); customizeShareParams.SetText("Sina share content"); customizeShareParams.SetImageUrl("http://git.oschina.net/alexyu.yxj/MyTmpFiles/raw/master/kmk_pic_fld/small/107.JPG"); customizeShareParams.SetShareType(ContentType.Text); customizeShareParams.SetObjectID("SinaID"); content.SetShareContentCustomize(PlatformType.SinaWeibo, customizeShareParams); //优先客户端分享 // content.SetEnableClientShare(true); //使用微博API接口应用内分享 iOS only // content.SetEnableSinaWeiboAPIShare(true); //通过分享菜单分享 ssdk.ShowPlatformList(null, content, 100, 100); }
public void SdkShareContentImage(PlatformType platform) { // Application.CaptureScreenshot("screenshot.png"); // string imagePath = Application.persistentDataPath + "/screenshot.png"; // ShareContent content = new ShareContent(); // content.SetImagePath(imagePath); content.SetText("快来加入游戏吧!"); content.SetTitle("金游房卡麻将3D"); string imageURl = "http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqia1ia8X0cdqEibvoWwKrRBTonZcRSxQgNXJlRg6EULfPzia4kFd1uicBItwibQ1kqpnmoIyDaUtCE2uFg/132"; Debug.Log(imageURl); content.SetImageUrl(imageURl); content.SetShareType(ContentType.Image); ssdk.ShareContent(platform, content); }
private void ShareRoomId() { StringBuilder textContent = new StringBuilder(); if (GameInfo.GroupID != 0) { textContent.Append("朋友圈:【" + GameInfo.GroupID + "】"); } textContent.Append("房间号:【" + Room_Id.text + "】"); switch (GameInfo.room_peo) { case 2: textContent.Append("二丁拐 "); break; case 3: textContent.Append("三丁拐 "); break; case 4: textContent.Append("四人局 "); break; } textContent.Append(GameInfo.gameCount + "局房 "); textContent.Append(GameInfo.roomRlue); ShareContent content = new ShareContent(); content.SetText(textContent.ToString());//显示了 if (string.IsNullOrEmpty(GameInfo.certificate)) { content.SetTitle("【等你乐麻将】【房卡】");//显示了 } else { content.SetTitle("【等你乐麻将】*【龙宝】*");//显示了 } content.SetImageUrl("http://qy-imageserver.oss-cn-shenzhen.aliyuncs.com/20171219115836.jpg");//没显示 content.SetUrl("http://download.gzqyrj.com/download/html/majhong.html"); content.SetShareType(ContentType.Webpage); //content.SetShareType(ContentType.Webpage); // FIClogin.myShareSdk.ShowPlatformList(null, content, 100, 100); FIClogin.myShareSdk.ShowShareContentEditor(PlatformType.WeChat, content); }
//分享游戏给我的好友 public void ShowGameToMyFriends(PlatformType plat) { SQDebug.Log(Application.persistentDataPath + iconPath); ShareDescConfig con = ConfigManager.GetConfigs <ShareDescConfig>()[1] as ShareDescConfig; ShareContent content = new ShareContent(); content.SetTitle(con.Title); // content.SetText(con.Content); // content.SetImageUrl(con.iconUrl); string str = string.Format(con.downUrl, PlayerModel.Inst.UserInfo.clubId); SQDebug.Log("分享连接:" + str); content.SetUrl(str); content.SetShareType(ContentType.Webpage); ssdk.ShareContent(plat, content); }