一个小bug
This commit is contained in:
parent
eee83cc6d1
commit
232a0fc1e5
@ -65,6 +65,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC
|
||||
keys := strings.Split(cmd, ":")
|
||||
if len(keys) == 2 {
|
||||
if keys[0] == "bingo" {
|
||||
this.Debugf("create CMD :%s", cmd) // 打印个日志方便查询
|
||||
datas := strings.Split(keys[1], ",")
|
||||
if len(datas) == 3 && (datas[0] == comm.AttrType || datas[0] == comm.ItemType ||
|
||||
datas[0] == comm.HeroType || datas[0] == comm.EquipmentType) {
|
||||
|
@ -50,7 +50,7 @@ func (this *apiComp) Fusion(session comm.IUserSession, req *pb.HeroFusionReq) (c
|
||||
_costMaphero[k] = _obj
|
||||
}
|
||||
for _, v := range conf.Pointhero {
|
||||
if _, ok := mapHero[v]; !ok {
|
||||
if _, ok := mapHero[v]; ok {
|
||||
mapHero[v] -= 1
|
||||
} else {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
|
34
modules/timer/season.go
Normal file
34
modules/timer/season.go
Normal file
@ -0,0 +1,34 @@
|
||||
package timer
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/modules"
|
||||
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/lego/sys/cron"
|
||||
)
|
||||
|
||||
type SeasonPagoda struct {
|
||||
modules.MCompModel
|
||||
service core.IService
|
||||
dbName string
|
||||
}
|
||||
|
||||
//组件初始化接口
|
||||
func (this *SeasonPagoda) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||
this.TableName = comm.TableSeasonPagoda
|
||||
this.MCompModel.Init(service, module, comp, options)
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
||||
func (this *SeasonPagoda) Start() (err error) {
|
||||
err = this.MCompModel.Start()
|
||||
cron.AddFunc("0 0 23 L * ?", this.Timer) //每月最后一天23点执行一次
|
||||
return
|
||||
}
|
||||
|
||||
// 处理排行榜排序
|
||||
func (this *SeasonPagoda) Timer() {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user