异常处理
This commit is contained in:
parent
9a8af78c3f
commit
ed1fd6f350
@ -43,7 +43,7 @@ func (this *ModelCycle) getPagodaCycleList(uid string) (result *pb.DBPagodaCycle
|
|||||||
result.Uid = uid
|
result.Uid = uid
|
||||||
result.Itype = 1
|
result.Itype = 1
|
||||||
result.Rtime = configure.Now().Unix()
|
result.Rtime = configure.Now().Unix()
|
||||||
if conf, e := this.module.configure.GetPagodaCirculateConf(1, 1); e != nil {
|
if conf, e := this.module.configure.GetPagodaCirculateConf(1, 1); e == nil {
|
||||||
result.Etime = configure.Now().Unix() + int64(conf.Time)*24*3600
|
result.Etime = configure.Now().Unix() + int64(conf.Time)*24*3600
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("conf not found: %v", e.Error())
|
err = fmt.Errorf("conf not found: %v", e.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user