错误整合遗漏点
This commit is contained in:
parent
cf41baf481
commit
961a2e8bcf
@ -54,13 +54,15 @@ func (this *modelCaravan) getCaravanList(uid string) (result *pb.DBCaravan, err
|
||||
result.Citystime = configure.Now().Unix()
|
||||
result.Lv = 1
|
||||
result.Curcity = this.module.configure.GetCaravanInitCity() // 获取默认城市
|
||||
if conf, err := this.module.configure.GetCaravanLv(result.Lv); err != nil {
|
||||
if conf, err := this.module.configure.GetCaravanLv(result.Lv); err == nil {
|
||||
result.Baglimit = conf.Bagtop
|
||||
}
|
||||
this.module.InitCaravanCityData(uid, result) // 初始1级
|
||||
this.module.InitCaravanItemData(uid, result)
|
||||
this.Add(uid, result)
|
||||
return
|
||||
} else {
|
||||
this.module.Errorf("getCaravanList error: %v,uid:%s", err, uid)
|
||||
}
|
||||
err = nil
|
||||
return result, err
|
||||
|
Loading…
Reference in New Issue
Block a user