刷新货物 重置已出发的列表数据

This commit is contained in:
meixiongfeng 2024-01-19 11:59:07 +08:00
parent 3d6fc46cc2
commit 3973536282

View File

@ -28,8 +28,10 @@ func (this *apiComp) Refresh(session comm.IUserSession, req *pb.PlunderRefreshRe
}
// 刷新货物
list.Source, err = this.module.modelPlunder.refreshGoodsInfo()
list.Setout = []int32{}
this.module.modelPlunder.changePlunderData(session.GetUserId(), map[string]interface{}{
"source": list.Source,
"setout": list.Setout,
})
session.SendMsg(string(this.module.GetType()), "refresh", &pb.PlunderRefreshResp{
Source: list.Source,