Pārlūkot izejas kodu

更新

guide_order
huangjiajun pirms 1 nedēļas
vecāks
revīzija
e210894038
2 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      app/db/model/user_virtual_coin_flow.go
  2. +6
    -0
      app/svc/svc_tborder_refund_track.go

+ 1
- 0
app/db/model/user_virtual_coin_flow.go Parādīt failu

@@ -27,4 +27,5 @@ type UserVirtualCoinFlow struct {
TransferMoney string `json:"transfer_money" xorm:"not null default '0.000000' comment('转赠已撤回金额') INT(11)"`
FreezeBeforeAmout string `json:"freeze_before_amout" xorm:" comment('变更前数量') DECIMAL(16,6)"`
FreezeAfterAmout string `json:"freeze_after_amout" xorm:" comment('变更后数量') DECIMAL(16,6)"`
State int `json:"state" xorm:"not null default 0 comment('兑换时目标币种id') INT(11)"`
}

+ 6
- 0
app/svc/svc_tborder_refund_track.go Parādīt failu

@@ -216,6 +216,12 @@ func refundServiceVirtualAmount(eg *xorm.Engine, sess *xorm.Session, oid int64)
return false, err
}
}
if len(list) > 0 {
_, err := sess.Where("ord_id=?", oid).Cols("state").Update(&model.UserVirtualCoinFlow{State: 2})
if err != nil {
return false, err
}
}
return true, nil
}



Notiek ielāde…
Atcelt
Saglabāt