This commit is contained in:
meixiongfeng 2022-11-24 09:36:11 +08:00
commit 8c54145995
7 changed files with 3855 additions and 3232 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1021,6 +1021,61 @@
"data4": 0,
"data5": 0
},
{
"id": 189,
"datatype": 2,
"type": 70,
"inited": [],
"data1": 1,
"data2": 110,
"data3": 0,
"data4": 0,
"data5": 0
},
{
"id": 190,
"datatype": 2,
"type": 70,
"inited": [],
"data1": 1,
"data2": 111,
"data3": 1,
"data4": 1,
"data5": 1
},
{
"id": 191,
"datatype": 2,
"type": 70,
"inited": [],
"data1": 1,
"data2": 112,
"data3": 2,
"data4": 2,
"data5": 2
},
{
"id": 192,
"datatype": 2,
"type": 70,
"inited": [],
"data1": 1,
"data2": 113,
"data3": 3,
"data4": 3,
"data5": 3
},
{
"id": 193,
"datatype": 2,
"type": 70,
"inited": [],
"data1": 1,
"data2": 114,
"data3": 4,
"data4": 4,
"data5": 4
},
{
"id": 10001,
"datatype": 2,

View File

@ -4,323 +4,167 @@
"FormatList": [
700011
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 102,
"FormatList": [
700011
700012
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 103,
"FormatList": [
700011
700013
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 104,
"FormatList": [
700011
700014
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 105,
"FormatList": [
700011
700015
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 106,
"FormatList": [
700011
700016
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 107,
"FormatList": [
700011
700017
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 108,
"FormatList": [
700011
700018
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 109,
"FormatList": [
700011
700019
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 110,
"FormatList": [
700011
700020
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 111,
"FormatList": [
700011
700021
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 112,
"FormatList": [
700011
700022
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 113,
"FormatList": [
700011
700023
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
},
{
"id": 114,
"FormatList": [
700011
700024
],
"DefaultHero": 700011,
"DefaultHero": 0,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"playexp": 1000
},
{
"id": 115,
"FormatList": [
700011
],
"DefaultHero": 700011,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"playexp": 1000
},
{
"id": 116,
"FormatList": [
700011
],
"DefaultHero": 700011,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"playexp": 1000
},
{
"id": 117,
"FormatList": [
700011
],
"DefaultHero": 700011,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"playexp": 1000
},
{
"id": 118,
"FormatList": [
700011
],
"DefaultHero": 700011,
"SelectableHero": [],
"LockSlots": [
3,
4
],
"AssistTeam": 710003,
"EventList": [
12,
14
],
"LockSlots": [],
"AssistTeam": 0,
"EventList": [],
"playexp": 1000
}
]

View File

@ -56,7 +56,7 @@
100002
],
"completetask": 0,
"auto_accept": 0,
"auto_accept": 1,
"overtips": 1,
"reword": [],
"day": "",

View File

@ -118,6 +118,9 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
}
if req.Sysformat != nil && len(req.Sysformat) > 0 {
for i, v := range req.Sysformat {
if v == 0 {
continue
}
if captain, masters, code = this.createMasterRoles(100, i, v); code != pb.ErrorCode_Success {
return
}
@ -129,6 +132,9 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
}
if req.Backupformat != nil && len(req.Backupformat) > 0 {
for i, v := range req.Backupformat {
if v == 0 {
continue
}
if captain, masters, code = this.createMasterRoles(100, i, v); code != pb.ErrorCode_Success {
return
}

View File

@ -37,8 +37,9 @@ func (this *apiComp) Getreward(session comm.IUserSession, req *pb.FriendGetrewar
return
}
if code = this.moduleFriend.DispenseRes(session, this.moduleFriend.globalConf.FriendPeize, true); code != pb.ErrorCode_Success {
this.moduleFriend.Error("好友领奖励", log.Fields{"uid": uid, "reward": this.moduleFriend.globalConf.FriendPeize, "code": code})
globalConf := this.moduleFriend.configure.GetGlobalConf()
if code = this.moduleFriend.DispenseRes(session, globalConf.FriendPeize, true); code != pb.ErrorCode_Success {
this.moduleFriend.Error("好友领奖励", log.Fields{"uid": uid, "reward": globalConf.FriendPeize, "code": code})
return
}

View File

@ -174,7 +174,7 @@ func (this *ModuleRtask) initRtaskVerifyHandle() {
comm.Rtype26, comm.Rtype27, comm.Rtype28, comm.Rtype38,
comm.Rtype39, comm.Rtype50, comm.Rtype51, comm.Rtype53,
comm.Rtype54, comm.Rtype57, comm.Rtype58, comm.Rtype60,
comm.Rtype62, comm.Rtype64, comm.Rtype69, comm.Rtype72,comm.Rtype104:
comm.Rtype62, comm.Rtype64, comm.Rtype69, comm.Rtype72, comm.Rtype104:
this.registerVerifyHandle(v.Id, &rtaskCondi{
cfg: typeCfg,
find: this.modelRtaskRecord.lessEqualFirstParam,
@ -188,7 +188,7 @@ func (this *ModuleRtask) initRtaskVerifyHandle() {
verify: this.modelRtask.verifyRtype20,
update: this.modelRtaskRecord.overrideUpdate,
})
case comm.Rtype22,comm.Rtype109:
case comm.Rtype22, comm.Rtype109:
this.registerVerifyHandle(v.Id, &rtaskCondi{
cfg: typeCfg,
find: this.modelRtaskRecord.equalFirstParam,
@ -263,11 +263,13 @@ func (this *ModuleRtask) SendToRtask(session comm.IUserSession, rtaskType comm.T
}
if v.find == nil {
this.Warn("未设置find Handle", log.Fields{"uid": uid, "condiId": codi.Id})
return
}
if condiId, err = v.find(v.cfg, params...); condiId == 0 {
if err != nil {
this.Warn(errors.WithMessage(err, uid).Error(), log.Fields{})
this.Warnln(errors.WithMessage(err, uid).Error())
}
} else {
condis = append(condis, v)