huangjiajun 2 月之前
父節點
當前提交
553d808ceb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      rule/service_award_dividend/return.go

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


Loading…
取消
儲存