作者 tangxvhui

测试调整

@@ -145,11 +145,11 @@ func (c RankController) RankSeasonAdd() { @@ -145,11 +145,11 @@ func (c RankController) RankSeasonAdd() {
145 return 145 return
146 } 146 }
147 endTime = t2.Unix() + 86399 //60*60*24-1 147 endTime = t2.Unix() + 86399 //60*60*24-1
148 - ok := serverank.RankPeriodCheckTime(param.RankTypeId, beginTime, endTime, 0)  
149 - if !ok {  
150 - msg = protocol.BadRequestParam("10101")  
151 - return  
152 - } 148 + // ok := serverank.RankPeriodCheckTime(param.RankTypeId, beginTime, endTime, 0)
  149 + // if !ok {
  150 + // msg = protocol.BadRequestParam("10101")
  151 + // return
  152 + // }
153 companyid := c.GetCompanyId() 153 companyid := c.GetCompanyId()
154 err = serverank.AddRankPeriod(param.RankTypeId, beginTime, endTime, param.Name, companyid) 154 err = serverank.AddRankPeriod(param.RankTypeId, beginTime, endTime, param.Name, companyid)
155 msg = protocol.NewReturnResponse(nil, err) 155 msg = protocol.NewReturnResponse(nil, err)
@@ -198,11 +198,11 @@ func (c RankController) RankSeasonEdit() { @@ -198,11 +198,11 @@ func (c RankController) RankSeasonEdit() {
198 } 198 }
199 199
200 endTime = t2.Unix() + 86399 //60*60*24-1 200 endTime = t2.Unix() + 86399 //60*60*24-1
201 - ok := serverank.RankPeriodCheckTime(param.RankTypeId, beginTime, endTime, param.Id)  
202 - if !ok {  
203 - msg = protocol.BadRequestParam("10101")  
204 - return  
205 - } 201 + // ok := serverank.RankPeriodCheckTime(param.RankTypeId, beginTime, endTime, param.Id)
  202 + // if !ok {
  203 + // msg = protocol.BadRequestParam("10101")
  204 + // return
  205 + // }
206 companyid := c.GetCompanyId() 206 companyid := c.GetCompanyId()
207 fmt.Println(beginTime, endTime) 207 fmt.Println(beginTime, endTime)
208 err = serverank.EditRankPeriod(param.Id, beginTime, endTime, param.Name, companyid) 208 err = serverank.EditRankPeriod(param.Id, beginTime, endTime, param.Name, companyid)