huangjiajun 2 个月前
父节点
当前提交
0e4613d4d5
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      rule/service_award_dividend/return.go

+ 18
- 0
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


正在加载...
取消
保存