diff --git a/app/db/offical/model/express_agent_money_flow.go b/app/db/offical/model/express_agent_money_flow.go index 2696db9..4fe477a 100644 --- a/app/db/offical/model/express_agent_money_flow.go +++ b/app/db/offical/model/express_agent_money_flow.go @@ -13,4 +13,5 @@ type ExpressAgentMoneyFlow struct { AfterAmount string `json:"after_amount" xorm:"default 0.00 DECIMAL(20,2)"` Oid string `json:"oid" xorm:"VARCHAR(255)"` Title string `json:"title" xorm:"VARCHAR(255)"` + Puid int `json:"puid" xorm:"default 0 INT(11)"` } diff --git a/consume/zhios_express_order_fail.go b/consume/zhios_express_order_fail.go index 9928640..3c5822d 100644 --- a/consume/zhios_express_order_fail.go +++ b/consume/zhios_express_order_fail.go @@ -153,6 +153,7 @@ func agentDeduct(oid string, base map[string]string, price string) (error, int) return e.NewErr(400, "平台预存款扣除失败!"), 0 } var flow = &model.ExpressAgentMoneyFlow{ + Puid: utils.StrToInt(base["puid"]), Uid: user.Uid, Type: 0, Time: time.Now(),