|
我也是,提示:{"code":0,"status":0,"msg":"应用不存在"} ,你的问题怎么解决的?
我的代码是:
var model = api.require('model');
model.config({
appId:'A6163280266967',
appKey: '61852ED2-86EA-FFAF-20F7-27CCAE74CFE3',
host: 'https://d.apicloud.com'
});
var user = api.require('user');
user.register({
username: vusername,
password: vpassword,
email: 'test**.**'
}, function( ret, err ) {
if( ret && ret.id ){
console.log("注册成功。" + JSON.stringify( ret) );
alert( JSON.stringify( ret) );
}else{
console.log("注册失败。" + JSON.stringify( ret ) );
alert( JSON.stringify( err) );
}
}); |
|