This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"blazing/common/socket/errorcode"
|
||||
logicplayer "blazing/logic/service/player"
|
||||
"blazing/logic/service/user"
|
||||
baseservice "blazing/modules/base/service"
|
||||
configservice "blazing/modules/config/service"
|
||||
playerservice "blazing/modules/player/service"
|
||||
"strings"
|
||||
@@ -14,6 +15,11 @@ import (
|
||||
func (h Controller) CDK(data *C2S_GET_GIFT_COMPLETE, player *logicplayer.Player) (result *user.S2C_GET_GIFT_COMPLETE, err errorcode.ErrorCode) {
|
||||
result = &user.S2C_GET_GIFT_COMPLETE{}
|
||||
|
||||
userInfo := baseservice.NewBaseSysUserService().GetPerson(data.Head.UserID)
|
||||
if userInfo == nil || userInfo.QQ == 0 {
|
||||
return nil, errorcode.ErrorCodes.ErrCannotPerformAction
|
||||
}
|
||||
|
||||
cdkCode := strings.Trim(data.PassText, "\x00")
|
||||
cdkService := configservice.NewCdkService()
|
||||
now := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user