From 553d808cebea6a7f59ff0b66abe71f93d975ba4c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 15 Oct 2024 16:16:32 +0800 Subject: [PATCH] 1 --- rule/service_award_dividend/return.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/service_award_dividend/return.go b/rule/service_award_dividend/return.go index 04a709a..b45130a 100644 --- a/rule/service_award_dividend/return.go +++ b/rule/service_award_dividend/return.go @@ -95,7 +95,7 @@ func AddPeriod(eg *xorm.Engine, sess *xorm.Session, req map[string]string) int { date := GetCycle(eg) if base.ReturnType == 1 { //手动的 var data models.ServiceAwardReturnFlow - get, _ := sess.Where("coin_id=? and type=? and pvd=? and date=? and uid=?", req["coin_id"], 1, req["pvd"], date["now"], req["uid"]).Get(&data) + get, _ := sess.Where("coin_id=? and type=? and pvd=? and uid=?", req["coin_id"], 1, req["pvd"], req["uid"]).Get(&data) if get == false { data = models.ServiceAwardReturnFlow{ Uid: zhios_order_relate_utils.StrToInt(req["uid"]), @@ -192,7 +192,7 @@ func AddPeriodEg(eg *xorm.Engine, req map[string]string) int { if base.ReturnType == 1 { //手动的 var data models.ServiceAwardReturnFlow - get, _ := eg.Where("coin_id=? and type=? and pvd=? and date=? and uid=?", req["coin_id"], 1, req["pvd"], date["now"], req["uid"]).Get(&data) + get, _ := eg.Where("coin_id=? and type=? and pvd=? and uid=?", req["coin_id"], 1, req["pvd"], req["uid"]).Get(&data) if get == false { data = models.ServiceAwardReturnFlow{ Uid: zhios_order_relate_utils.StrToInt(req["uid"]),