Open 09133792 opened 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(); }); }
路径里是否包含中文?
@09133792
先试试把描述字段填上
description: ''
如果还不行,应该是apk签名和开放平台提交的不一样吧
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(); }); }