fix: 修复日志输出与代码格式错误
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-25 01:22:44 +08:00
committed by cnb
parent e0a82d57b4
commit f8b8a87331
13 changed files with 146 additions and 54 deletions

View File

@@ -114,7 +114,7 @@ func (s *BaseSysUserService) UpdateFreeGold(userId uint32, gold int64) {
func (s *BaseSysUserService) UpdateGold(userId uint32, gold int64) {
if cool.Config.ServerInfo.IsVip != 0 {
cool.Logger.Info(context.TODO(), "测试服不操作金币")
return
}
m := cool.DBM(s.Model).Where("id", userId)
@@ -141,6 +141,12 @@ func (s *BaseSysUserService) GetEamil(userId string) (res *model.BaseSysUser) {
return
}
func (s *BaseSysUserService) GetQQ(userId int64) (res *model.BaseSysUser) {
m := cool.DBM(s.Model)
m.Where("qq", userId).FieldsEx("password").Scan(&res)
return
}
func (s *BaseSysUserService) ModifyBefore(ctx context.Context, method string, param g.MapStrAny) (err error) {
if method == "Delete" {
// 禁止删除超级管理员