1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-04-18 16:34:03 +08:00
parent 823eef00ac
commit da118dc826
9 changed files with 165 additions and 126 deletions

View File

@@ -2,6 +2,7 @@ package app
import (
"blazing/cool"
baseservice "blazing/modules/base/service"
configservice "blazing/modules/config/service"
playerservice "blazing/modules/player/service"
"context"
@@ -118,6 +119,10 @@ func (c *CdkController) DonationRedeem(ctx context.Context, req *DonationRedeemR
return cool.Fail("未登录或登录已失效"), nil
}
ownerID := uint32(admin.UserId)
user := baseservice.NewBaseSysUserService().GetPerson(ownerID)
if user == nil || user.QQ == 0 {
return cool.Fail("请先绑定QQ"), nil
}
cdkCode := strings.TrimSpace(req.CDKCode)
if cdkCode == "" {