update
This commit is contained in:
parent
e90954f99b
commit
981d1bc1da
@ -36,31 +36,6 @@ func (this *ModelRank) Init(service core.IService, module core.IModule, comp cor
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *ModelRank) AddRank(uId string, data *pb.DBPagodaRecord) (err error) {
|
|
||||||
if err = this.Add(uId, data); err != nil {
|
|
||||||
//this.Errorf("err:%v", err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
//获取用户通过扩展表
|
|
||||||
// func (this *ModelRank) GetUserRandData(uid string) (result *pb.DBPagodaRecord, err error) {
|
|
||||||
// result = &pb.DBPagodaRecord{}
|
|
||||||
// if err = this.Get(uid, result); err != nil && redis.RedisNil != err {
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// err = nil
|
|
||||||
// return result, err
|
|
||||||
// }
|
|
||||||
|
|
||||||
func (this *ModelRank) ChangeUserRank(uid string, value map[string]interface{}) (err error) {
|
|
||||||
if len(value) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return this.Change(uid, value)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (this *ModelRank) GetRankData() (data []*pb.DBPagodaRecord, err error) {
|
func (this *ModelRank) GetRankData() (data []*pb.DBPagodaRecord, err error) {
|
||||||
data = make([]*pb.DBPagodaRecord, 0)
|
data = make([]*pb.DBPagodaRecord, 0)
|
||||||
if conn, err := db.Cross(); err == nil {
|
if conn, err := db.Cross(); err == nil {
|
||||||
@ -243,12 +218,6 @@ func (this *ModelRank) SetNormalPagodaRankList(tableName string, score int32, ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *ModelRank) seasonSettlement() {
|
func (this *ModelRank) seasonSettlement() {
|
||||||
|
|
||||||
list := this.modulePagoda.configure.GetPagodaSeasonReward()
|
|
||||||
if list == nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
rankReward := this.modulePagoda.configure.GetPagodaSeasonReward()
|
rankReward := this.modulePagoda.configure.GetPagodaSeasonReward()
|
||||||
if rankReward == nil {
|
if rankReward == nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user