|
有谁帮忙看看是什么问题?
var now = Date.now();
var appKey = SHA1("A6968185344826"+"UZ"+"3CFDC65D-70EC-1CF2-19D9-36755A7CD8B7"+"UZ"+now)+"."+now;
$.ajax({
url: 'https://d.apicloud.com/mcm/api/user',
type: 'GET',
dataType: 'jsonp',
headers:{
"X-APICloud-AppId": "{{A6968185344826}}",
"X-APICloud-AppKey": "{{" + appKey + "}}",
"Content-Type": "application/json"
},
success: function(d){
alert(d);
if (d) {
var urlJson = JSON.stringify(d);
alert(urlJson);
} else {
alert('错误');
};
},
error:function(e){
alert(e.status);
}
});
|
|