xu-li / cordova-plugin-wechat

A cordova plugin, a JS version of Wechat SDK
1.22k stars 509 forks source link

分享朋友圈功能,一套代码,iOS能分享成功,Android报错 json error #554

Open 09133792 opened 4 years ago

09133792 commented 4 years ago

wxShareToTimeLine(h5Url: string) { this.messageService.loading(''); console.log('准备分享朋友圈-----地址:', h5Url); console.log('title', this.articleSummary['title']); console.log('thumbUrl', this.articleSummary['thumbUrl']); this.wechat.share({ message: { title: this.articleSummary['title'], thumb: this.articleSummary['thumbUrl'], media: { type: 7, webpageUrl: h5Url } }, scene: 1 }).then(() => { this.messageService.info('分享成功'); console.log('分享成功-----'); this.messageService.hide(); }).catch(error => { this.messageService.info('分享失败'); console.log('分享失败:', error); this.messageService.hide(); }); }

jasonz1987 commented 4 years ago

路径里是否包含中文?

crapthings commented 4 years ago

@09133792

先试试把描述字段填上

description: ''

如果还不行,应该是apk签名和开放平台提交的不一样吧