微信开发下,调用的uploadImage接口,ios设备无法显示图片

我的代码如下:
wx.ready(function(){

                $('body').on('touchend',function(){
                    alert($('#otherPhoto')[0].outerHTML);
                })
                wx.downloadImage({
                    serverId: TheOtherRecordId.toString(), 
                    isShowProgressTips: 0, 
                    success: function (res) {
                        var localId = res.localId;
                        HdGame.tlog(localId);
                        $('#otherPhoto').attr("src",localId.toString());
                        HdGame.tlog(aysclOtherPlayer.Endscale);
                    },
                    fail: function(){
                        HdGame.tlog('图片下载失败!');
                    }
                });
            })
            
            
            

不知道为什么,在安卓设备下图片显示正常,但是ios下面就显示失败。。。。望大神指点江山

回复
阅读 5.1k
1 个回答

标题是uploadImage,内容是downloadImage,确定没有搞混?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏