diff --git a/rule/service_award_dividend/return.go b/rule/service_award_dividend/return.go index 9c22e94..04a709a 100644 --- a/rule/service_award_dividend/return.go +++ b/rule/service_award_dividend/return.go @@ -119,6 +119,24 @@ func AddPeriod(eg *xorm.Engine, sess *xorm.Session, req map[string]string) int { if update == 0 || err != nil { return 3 } + data1 := models.ServiceAwardReturnFlowHand{ + Uid: zhios_order_relate_utils.StrToInt(req["uid"]), + Time: time.Now(), + UpdateTime: time.Now(), + Sum: req["amount"], + Type: 1, + HasReturnMoney: "0", + Price: req["price"], + Pvd: zhios_order_relate_utils.StrToInt(req["pvd"]), + CoinId: base.CoinId, + Date: zhios_order_relate_utils.StrToInt(date["now"]), + LastDate: zhios_order_relate_utils.StrToInt(date["last"]), + Oid: zhios_order_relate_utils.StrToInt64(req["oid"]), + } + update, err = sess.Insert(&data1) + if update == 0 || err != nil { + return 3 + } return 1 } period := 0