Parcourir la source

update 普票提现

master
dengbiao il y a 1 mois
Parent
révision
9c7a9864d4
3 fichiers modifiés avec 23 ajouts et 19 suppressions
  1. +11
    -10
      app/flexible_employment/svc/svc_fin_withdraw_apply.go
  2. +8
    -8
      consume/init.go
  3. +4
    -1
      consume/withdraw_consume_new_pupiao.go

+ 11
- 10
app/flexible_employment/svc/svc_fin_withdraw_apply.go Voir le fichier

@@ -90,6 +90,7 @@ func DealFailResult(sess *xorm.Session, apply *model.FinWithdrawApply, masterId,
}
return nil
}

func DealFailResultForPuPiao(sess *xorm.Session, apply *model.FinWithdrawApply, masterId, errMsg string) (err error) {
userProfile, err := db.UserFindByIDWithSession(sess, apply.Uid)
if err != nil {
@@ -106,16 +107,16 @@ func DealFailResultForPuPiao(sess *xorm.Session, apply *model.FinWithdrawApply,
if updateAck <= 0 {
return errors.New("更新提现单失败")
}
updateAck, err = sess.Where("request_id=?", apply.Id).Cols("state", "callback_data_for_trade_result").Update(model2.FlexibleEmploymentOrd{
State: 3,
CallbackDataForTradeResult: errMsg,
})
if err != nil {
return err
}
if updateAck <= 0 {
return errors.New("更新工猫记录失败")
}
//updateAck, err = sess.Where("request_id=?", apply.Id).Cols("state", "callback_data_for_trade_result").Update(model2.FlexibleEmploymentOrd{
// State: 3,
// CallbackDataForTradeResult: errMsg,
//})
//if err != nil {
// return err
//}
//if updateAck <= 0 {
// return errors.New("更新工猫记录失败")
//}

//2、判断类型 加回手续费
var finUserFlow model.FinUserFlow


+ 8
- 8
consume/init.go Voir le fichier

@@ -94,14 +94,14 @@ func initConsumes() {
//jobs[consumeMd.OneCirclesDealUserCoinConsumeFunName] = OneCirclesDealUserCoinConsume

//////////////////////////////////////// withdraw /////////////////////////////////////////////////////
//jobs[consumeMd.WithdrawConsumeFunName] = WithdrawConsume
//jobs[consumeMd.FlexibleEmploymentWithdrawForGongMaoConsumeFunName] = FlexibleEmploymentWithdrawForGongMaoConsume
//jobs[consumeMd.FlexibleEmploymentWithdrawForPupiaoConsumeFunName] = FlexibleEmploymentWithdrawForPupiaoConsume
//jobs[consumeMd.NewFlexibleEmploymentWithdrawForPupiaoConsumeFunName] = NewFlexibleEmploymentWithdrawForPupiaoConsume
//jobs[consumeMd.ServiceAwardDividendRelationConsumeFunName] = ServiceAwardDividendRelationConsume
//jobs[consumeMd.CanalServiceAwardDividendRelationConsumeFunName] = CanalServiceAwardDividendRelationConsume //服务奖消费
//jobs[consumeMd.DividendRewardConsumeFunName] = DividendRewardConsume //蜂蜜分红
//jobs[consumeMd.ContributionExchangeConsumeFunName] = ContributionExchangeConsume //蜂蜜分红-兑换贡献值
jobs[consumeMd.WithdrawConsumeFunName] = WithdrawConsume
jobs[consumeMd.FlexibleEmploymentWithdrawForGongMaoConsumeFunName] = FlexibleEmploymentWithdrawForGongMaoConsume
jobs[consumeMd.FlexibleEmploymentWithdrawForPupiaoConsumeFunName] = FlexibleEmploymentWithdrawForPupiaoConsume
jobs[consumeMd.NewFlexibleEmploymentWithdrawForPupiaoConsumeFunName] = NewFlexibleEmploymentWithdrawForPupiaoConsume
jobs[consumeMd.ServiceAwardDividendRelationConsumeFunName] = ServiceAwardDividendRelationConsume
jobs[consumeMd.CanalServiceAwardDividendRelationConsumeFunName] = CanalServiceAwardDividendRelationConsume //服务奖消费
jobs[consumeMd.DividendRewardConsumeFunName] = DividendRewardConsume //蜂蜜分红
jobs[consumeMd.ContributionExchangeConsumeFunName] = ContributionExchangeConsume //蜂蜜分红-兑换贡献值

//jobs[consumeMd.ZhiosMallGreenCoinConsumeFunName] = ZhiosMallGreenCoinConsume //绿色双链积分
//jobs[consumeMd.ZhiosOneCirclesCoinConsumeFunName] = ZhiosOneCirclesCoinConsume //一个圈圈虚拟币变化


+ 4
- 1
consume/withdraw_consume_new_pupiao.go Voir le fichier

@@ -153,8 +153,11 @@ func handleNewFlexibleEmploymentWithdrawForPupiaoConsume(msgData []byte) error {
return err
}
if response.Code != 200 {
fmt.Println("NewFlexibleEmploymentWithdrawForPupiaoCurlERR::::::::::::::::", response)
utils.FilePutContents("NewFlexibleEmploymentWithdrawForPupiaoCurl_ERR", utils.SerializeStr(response))
flexibleEmploymentPupiaoOrd.BatchStatus = 3
updateAck, err := flexibleEmploymentPupiaoOrdDb.Update(flexibleEmploymentPupiaoOrd.Id, flexibleEmploymentPupiaoOrd, "batch_status")
flexibleEmploymentPupiaoOrd.CallbackData = response.Msg
updateAck, err := flexibleEmploymentPupiaoOrdDb.Update(flexibleEmploymentPupiaoOrd.Id, flexibleEmploymentPupiaoOrd, "batch_status", "callback_data")
if err != nil {
return err
}


Chargement…
Annuler
Enregistrer