```
feat(build): 添加 linux amd64 平台的逻辑编译脚本 在 build.bat 中新增 gox 编译命令,用于构建 linux amd64
This commit is contained in:
@@ -30,7 +30,7 @@ func (s *BaseSysUserService) Person(userId uint) (res gdb.Record, err error) {
|
||||
func (s *BaseSysUserService) GetSession(email string, password string) (res *model.BaseSysUser, err error) {
|
||||
m := cool.DBM(s.Model)
|
||||
|
||||
m.Where("email", email).Where("password=?", password).Where("status=?", 1).Scan(&res)
|
||||
m.Where("email", email).Where("password", password).Where("status", 1).Scan(&res)
|
||||
if res == nil {
|
||||
err = gerror.New("账户或密码不正确~")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user