刷新货物 重置已出发的列表数据
This commit is contained in:
parent
3d6fc46cc2
commit
3973536282
@ -28,8 +28,10 @@ func (this *apiComp) Refresh(session comm.IUserSession, req *pb.PlunderRefreshRe
|
|||||||
}
|
}
|
||||||
// 刷新货物
|
// 刷新货物
|
||||||
list.Source, err = this.module.modelPlunder.refreshGoodsInfo()
|
list.Source, err = this.module.modelPlunder.refreshGoodsInfo()
|
||||||
|
list.Setout = []int32{}
|
||||||
this.module.modelPlunder.changePlunderData(session.GetUserId(), map[string]interface{}{
|
this.module.modelPlunder.changePlunderData(session.GetUserId(), map[string]interface{}{
|
||||||
"source": list.Source,
|
"source": list.Source,
|
||||||
|
"setout": list.Setout,
|
||||||
})
|
})
|
||||||
session.SendMsg(string(this.module.GetType()), "refresh", &pb.PlunderRefreshResp{
|
session.SendMsg(string(this.module.GetType()), "refresh", &pb.PlunderRefreshResp{
|
||||||
Source: list.Source,
|
Source: list.Source,
|
||||||
|
Loading…
Reference in New Issue
Block a user