gpake / qiniu-wxapp-sdk

qiniu SDK based on wxapp
GNU General Public License v3.0
703 stars 278 forks source link

uniapp中上传进度100%后报错 #77

Open BruceAn1978 opened 4 years ago

BruceAn1978 commented 4 years ago

在uniapp中选择一个图片,然后开始上传后,progress回调正常,当进度100%后,控制台报错:parse JSON failed, origin String is: https://up-z2.qbox.me at common/qiniu-uploader.js:114

打印请求回应数据为: {"data":"https://up-z2.qbox.me","statusCode":401,"errMsg":"uploadFile:ok"}

BruceAn1978 commented 4 years ago

不是SDK的问题,是上传token后端服务器返回的不正确的问题。