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


불러오는 중...
취소
저장