This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user