anysdk分享ccc1.8.2 提示成功确啥也没有?

on action result: 0, msg: success to share!.
JS: share result, resultcode:0, msg: success to share!
2018-03-12 19:42:23.067856+0800 TestSdkBox-mobile[37805:15602419] FLQG_LOG:debug:ShareObject Share result is : 0(success to share!)
返回0了 怎么什么都没有?

console.log(“sadfsafasfsdfas”);
var agent = anysdk.agentManager;
var share_plugin = agent.getSharePlugin();
share_plugin.setListener(this.onShareResult, this);
var info = {
title : “ShareSDK 是一个神奇的 SDK”, // title 标题,印象笔记、邮箱、信息、微信、人人网和 QQ 空间使用
titleUrl : “http://sharesdk.cn”,// titleUrl 是标题的网络链接,仅在人人网和 QQ 空间使用
site : “ShareSDK”, // site 是分享此内容的网站名称,仅在 QQ 空间使用
siteUrl : “http://sharesdk.cn”, // siteUrl 是分享此内容的网站地址,仅在 QQ 空间使用
imagePath:"/sdcard/test.png", // imagePath 是图片的本地路径,Linked-In 以外的平台都支持此参数
url:“http://sharesdk.cn”, // url 仅在微信(包括好友和朋友圈)中使用
imageUrl:“http://www.baidu.com/img/bdlogo.png?tn=63090008_1_hao_pg”, // imageUrl 是图片的网络路径,新浪微博,人人网,QQ 空间支持此字段
text : “ShareSDK 集成了简单、支持如微信、新浪微博、腾讯微博等社交平台”, // text 是分享文本,所有平台都需要这个字段
comment : “无” // comment 是我对这条分享的评论,仅在人人网和 QQ 空间使用
}
share_plugin.share(info);
console.log(“sadfsafasfsdfas2222”);
return

打印:

JS: sadfsafasfsdfas
in ProtocolShare_setResultListener, argc:2.
2018-03-12 19:42:23.062938+0800 TestSdkBox-mobile[37805:15602419] FLQG_LOG:debug:callFunction(ShareDebug,setResultListener)
in ProtocolShare_share, argc:1.
2018-03-12 19:42:23.064790+0800 TestSdkBox-mobile[37805:15602419] FLQG_LOG:debug:callFunction(ShareDebug,share)
2018-03-12 19:42:23.065620+0800 TestSdkBox-mobile[37805:15602419] FLQG_LOG:debug:shareInfo:{
comment = “\U65e0”;
imagePath = “/sdcard/test.png”;
imageUrl = “http://www.baidu.com/img/bdlogo.png?tn=63090008_1_hao_pg”;
site = ShareSDK;
siteUrl = “http://sharesdk.cn”;
text = “ShareSDK \U96c6\U6210\U4e86\U7b80\U5355\U3001\U652f\U6301\U5982\U5fae\U4fe1\U3001\U65b0\U6d6a\U5fae\U535a\U3001\U817e\U8baf\U5fae\U535a\U7b49\U793e\U4ea4\U5e73\U53f0”;
title = “ShareSDK \U662f\U4e00\U4e2a\U795e\U5947\U7684 SDK”;
titleUrl = “http://sharesdk.cn”;
url = “http://sharesdk.cn”;
} invoked.
2018-03-12 19:42:23.066768+0800 TestSdkBox-mobile[37805:15602419] FLQG_LOG:debug:onActionResult(ShareDebug,0,success to share!)
on action result: 0, msg: success to share!.
JS: share result, resultcode:0, msg: success to share!
2018-03-12 19:42:23.067856+0800 TestSdkBox-mobile[37805:15602419] FLQG_LOG:debug:ShareObject Share result is : 0(success to share!)
JS: sadfsafasfsdfas2222

又遇到同样结果的吗?

沉了?????????????????

我的帖子也沉了。。

AnySDK只是个接入工具,自身不带分享功能。所以在母包情况下只能给个回调了。

需要打包分享插件的Share/微信等才能实现分享功能

如果使用微信分享可能还要加上shareTo和mediaType参数,所需参数参考下Android: http://docs.anysdk.com/faq/sdk-params/#_74 iOS: http://docs.anysdk.com/faq/ios-sdk-params/#_44

还有,打包前记得把-desktop那个target删了,不然打包后可能报错,参考 http://docs.anysdk.com/integration/client-js/quick-integration/#targets

感谢回答,建议加个提示,我是按照sdkbox步骤 在ccc打包界面一路点过来的,没提示不知道怎么弄了。。。。