Commit 88ebafb5 by 蒋勇

d

parent 3443e16a
......@@ -977,3 +977,11 @@ module.exports = AccessAuthAPI;
// ff.then((v)=>{
// console.log(v);
// })
// var req={app:{appkey:"wx76a324c5d201d1a4"}};
// var p={mobile:"18610915380"};
// var x=new AccessAuthAPI();
// var ff=x.deleteUserForTest(p,null,req);
// ff.then((v)=>{
// console.log(v);
// })
\ No newline at end of file
......@@ -13,8 +13,8 @@ class UserService extends ServiceBase {
}
//按照电话号码,删除账号
async deleteUserForTest(obj){
await this.db.models.user.destroy({where:{mobile:obj.mobile,app_id:2}});
await this.db.models.account.destroy({where:{userName:obj.mobile}});
await this.db.models.user.destroy({force: true,where:{mobile:obj.mobile,app_id:2}});
await this.db.models.account.destroy({force: true,where:{userName:obj.mobile}});
return {};
}
//按照电话和密码查询出用户
......
......@@ -7,11 +7,11 @@ var settings = {
},
database: {
dbname: "paas",
user: "root",
password: "123456",
user: "write",
password: "write",
config: {
host: '192.168.4.119',
port: 3306,
host: '43.247.184.35',
port: 8899,
dialect: 'mysql',
operatorsAliases: false,
pool: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment