pc 登录bug fixed
parent
8f15d3ef78
commit
a8ef74732b
|
|
@ -103,6 +103,15 @@ namespace New_College.Api.Controllers.Front
|
|||
//await _services.UpdateCustomer(custome);//注册已后台数据库自动完成
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
await _services.Add(new V_CustomerInfo() {
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,6 +122,23 @@ namespace New_College.Controllers
|
|||
user = baseuser;
|
||||
await _CustomerInfoServices.Update(baseuser);
|
||||
}
|
||||
else
|
||||
{
|
||||
//没有用户则注册一个新用户
|
||||
|
||||
user = new Model.Models.V_CustomerInfo()
|
||||
{
|
||||
IsDelete = false,
|
||||
UUID = userinfo.sub,
|
||||
Phone = userinfo.phone,
|
||||
OpenId = userinfo.aud,
|
||||
CreateTime = DateTime.UtcNow,
|
||||
IsVIP = false,
|
||||
Gender = 0
|
||||
};
|
||||
user.Id = await _CustomerInfoServices.Add(user);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -97,14 +97,14 @@
|
|||
"DBType": 0,
|
||||
"Enabled": true,
|
||||
"HitRate": 20,
|
||||
"Connection": "Server=192.168.103.102; Port=3306;SslMode=None;Database=volunteerapp; Uid=ycymedu; Pwd=Vs..127134;CharSet=utf8mb4;AllowLoadLocalInfile=true"
|
||||
"Connection": "Server=192.168.104.108; Port=3306;SslMode=None;Database=volunteerapp; Uid=root; Pwd=Vs..127134;CharSet=utf8mb4;AllowLoadLocalInfile=true"
|
||||
},
|
||||
{
|
||||
"ConnId": "MYSQL_CasDoor",
|
||||
"DBType": 0,
|
||||
"Enabled": true,
|
||||
"HitRate": 20,
|
||||
"Connection": "Server=192.168.103.102; Port=3306;SslMode=None;Database=casdoor; Uid=ycymedu; Pwd=Vs..127134;CharSet=utf8mb4;AllowLoadLocalInfile=true"
|
||||
"Connection": "Server=192.168.104.108; Port=3306;SslMode=None;Database=casdoor; Uid=root; Pwd=Vs..127134;CharSet=utf8mb4;AllowLoadLocalInfile=true"
|
||||
},
|
||||
{
|
||||
"ConnId": "WMBLOG_ORACLE",
|
||||
|
|
|
|||
Loading…
Reference in New Issue