if (release_post()) {
var wt = plus.nativeUI.showWaiting();
var task = plus.uploader.createUpload(savepost_url, {
method: "POST"
},
function(t, status) {
if (status == 200) {
if (JSON.parse(t.responseText)["status"] == "0") {
if (plus.storage.getItem("isbuy") == "0"){
detailPage=plus.webview.getWebviewById('buy_sub');
}else{
detailPage=plus.webview.getWebviewById('sell_sub');
}
mui.fire(detailPage,'newpost',{
imgs : select_img_path,
content : content.value,
post_time : Date.parse(new Date())/1000,
mobile : plus.storage.getItem("mobile")
});
mui.back();
} else {
mui.toast('发布失败');
}
wt.close();
} else {
// alert("上传失败:" + status);
wt.close();
}
}
);
task.addData("uid", uid_value);
task.addData("content", content.value);
task.addData("tabletype", plus.storage.getItem("isbuy"));
task.addFile(select_img_path, {});//图片路径(select_img_path)此处是有的
task.start();
}
图片路径为 : file:///storage/emulated/0/Tencent/QQfile_recv/PX4)_M0IO895}VC3Q}D@NI.png就可以成功,路径为:file:///storage/emulated/0/Tencent/QQfile_recv/A}@Y3Q9DSIJN8]PM[%
IP%O.png 就失败了,求大神
0 个回复