|
var now = Date.now();
$.ajax({
"url": "https://a6179483157705-dev.apicloud**.**/api/bookofshoucangs/update",
"cache": false,
"headers": {
"X-APICloud-AppId": "A6179483157705",
"X-APICloud-AppKey": SHA1("A6179483157705"+"UZ"+"056AD1C3-279C-571C-53F2-9C0EAAD1B14A"+"UZ"+now)+"."+now,
'X-Apicloud-Mcm-Key': 'AEf2SWC6s7wD6bk6'
},
"data":{
"values": {
"where":{"leixin": "css"},
"shoucang": "css css123"
}
},
"type": "POST"
}).done(function(data, status, header) {
api.alert({msg: JSON.stringify(data)});
}).fail(function(header, status, errorThrown) {
api.alert({msg: JSON.stringify(header)});
// alert("失败")
})
和
报错,看上去是代码写错了,不知道具体应该怎么写
"readyState":
4,"responseText":"\"error\":
\"statusCode\":500\"message\":
\"Internal Server
Error\"】","responseJSON":
f"error":f"statusCode":
500,"message":"Internal
Server Error","status":
500,"statusText":"Internal Server Error) |
|