Merge pull request 'feat-IRONFANS-148-Robin' (#557) from feat-IRONFANS-148-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/557
This commit is contained in:
commit
160e5af3b8
|
@ -3496,9 +3496,10 @@ func (s *Service) ApiHvyogoSingleDistribute(ctx *gin.Context, req *hvyogoproto.A
|
|||
}
|
||||
|
||||
// 发起单侧提现申请
|
||||
diamonds := int64(float64(distributeAmount) / 10)
|
||||
resp, err := _DefaultVas.UnilaterallyHvyogoWithdrawApply(ctx, &vasproto.UnilaterallyWithdrawApplyReq{
|
||||
BaseRequest: req.BaseRequest,
|
||||
Diamonds: int64(distributeAmount),
|
||||
Diamonds: diamonds,
|
||||
}, extWithdrawFunc)
|
||||
ec, err = errs.DealVasErr(err)
|
||||
if err != nil {
|
||||
|
|
|
@ -4253,11 +4253,15 @@ func (s *Service) SaveSingleDistributeCallback(ctx *gin.Context, req *hvyogoprot
|
|||
logger.Error("_DefaultSingleDistributeHis ClearLock fail, err: %v", err)
|
||||
}
|
||||
}
|
||||
errorDesc := ""
|
||||
if err != nil {
|
||||
errorDesc = err.Error()
|
||||
}
|
||||
err = _DefaultSingleDistributeHis.OpUpdate(ctx, &single_distribute_his_proto.OpUpdateReq{
|
||||
SingleDistributeHis: &dbstruct.SingleDistributeHis{
|
||||
Id: goproto.String(vo.RequestNo),
|
||||
FinalStatus: goproto.Int64(finalStatus),
|
||||
ErrorDesc: goproto.String(err.Error()),
|
||||
ErrorDesc: goproto.String(errorDesc),
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue