作者 tangxvhui

bug 修复

... ... @@ -121,7 +121,7 @@ func (c RankController) RankSeasonAdd() {
endTime int64
)
companyid := c.GetCompanyId()
err := serverank.AddRankSeason(param.RankTypeId, beginTime, endTime, param.Name, companyid)
err := serverank.AddRankPeriod(param.RankTypeId, beginTime, endTime, param.Name, companyid)
msg = protocol.NewReturnResponse(nil, err)
return
}
... ... @@ -150,7 +150,7 @@ func (c RankController) RankSeasonEdit() {
endTime int64
)
companyid := c.GetCompanyId()
err := serverank.EditRankSeason(param.Id, beginTime, endTime, param.Name, companyid)
err := serverank.EditRankPeriod(param.Id, beginTime, endTime, param.Name, companyid)
msg = protocol.NewReturnResponse(nil, err)
return
}
... ...
... ... @@ -118,6 +118,7 @@ func init() {
beego.NSRouter("/item/list", &controllers.RankController{}, "post:RankItemList"),
beego.NSRouter("/item/edit", &controllers.RankController{}, "post:RankItemEdit"),
),
beego.NSNamespace("/achievement"),
)
nsAuth := beego.NewNamespace("/auth",
... ...
... ... @@ -195,7 +195,7 @@ func AddRankPeriod(rankTypeId int64, beginTime int64, endTime int64, name string
return nil
}
func EditRankSeason(id int64, beginTime int64, endTime int64, name string, companyid int64) error {
func EditRankPeriod(id int64, beginTime int64, endTime int64, name string, companyid int64) error {
var (
err error
m *models.RankPeriod
... ...