|
|
@@ -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"]), |
|
|
|