oss上传400报错
Reoss上传400报错
回调部分代码
格式有问题吗
put.setCallbackParam(new HashMap() {
{
Log.e('回调', '上传回调: ' + Config.callbackAddress);
put('callbackUrl','http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm');
//callbackBody可以自定义传入的信息
put('callbackHost', 'oss-cn-shenzhen.aliyuncs.com');
put('callbackBodyType', 'application/json');
put('callbackBody','{\'projectId\':${x:projectId},\'answerId\':${x:answerId},\'description\':${x:description},\'answer\':${x:answer},\'pictureCount\':${x:pictureCount},\'audioCount\':${x:audioCount},\'number\':${x:number},\'stage\':${x:stage},\'audio\':${x:audio}}');
}
});
put.setCallbackVars(new HashMap(){
{
put('x:projectId',projectsDB.getPid());
put('x:answerId',subjectsDB.getHt_id());
put('x:answer',answer);
put('x:description',explain);
put('x:pictureCount',String.valueOf(imageSize));
put('x:audioCount',String.valueOf(recorderSize));
put('x:number',String.valueOf(number));
put('x:stage',stage);
put('x:audio',audioFileName);
}
});
赞0
踩0