Browse Source

更新

three
huangjiajun 11 months ago
parent
commit
36d129e4a5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      consume/zhios_guide_store_order_success.go

+ 2
- 2
consume/zhios_guide_store_order_success.go View File

@@ -118,7 +118,7 @@ func success(eg *xorm.Engine, canalMsg *md.ZhiosGuideStoreOrder) error {
if err == nil && storeOrder.DeductState == 1 { if err == nil && storeOrder.DeductState == 1 {
coinId := db.SysCfgGetWithDb(eg, canalMsg.Mid, "guide_store_coin_id") coinId := db.SysCfgGetWithDb(eg, canalMsg.Mid, "guide_store_coin_id")
err := UpdateUserFinValidAndInterFlowFreeze(sess, err := UpdateUserFinValidAndInterFlowFreeze(sess,
utils.AnyToString(deductPrice), "商品下单扣除冻结积分", "0", 2, utils.StrToInt(canalMsg.StoreId), utils.StrToInt(coinId), 117, newOrd.OrdId)
utils.AnyToString(deductPrice), "商品("+newOrd.ItemId+")下单扣除冻结积分", "0", 2, utils.StrToInt(canalMsg.StoreId), utils.StrToInt(coinId), 117, newOrd.OrdId)
if err != nil { if err != nil {
sess.Rollback() sess.Rollback()
return err return err
@@ -140,7 +140,7 @@ func fail(eg *xorm.Engine, canalMsg *md.ZhiosGuideStoreOrder) error {
if storeOrder != nil && utils.StrToFloat64(storeOrder.DeductPrice) > 0 { if storeOrder != nil && utils.StrToFloat64(storeOrder.DeductPrice) > 0 {
coinId := db.SysCfgGetWithDb(eg, canalMsg.Mid, "guide_store_coin_id") coinId := db.SysCfgGetWithDb(eg, canalMsg.Mid, "guide_store_coin_id")
err := UpdateUserVirtualCoinFinValidAndInterFlow(sess, err := UpdateUserVirtualCoinFinValidAndInterFlow(sess,
utils.AnyToString(storeOrder.DeductPrice), "商品退款退回", "0", 1, storeOrder.StoreId, utils.StrToInt(coinId), 114, utils.StrToInt64(canalMsg.Oid))
utils.AnyToString(storeOrder.DeductPrice), "商品("+storeOrder.Gid+")退款退回", "0", 1, storeOrder.StoreId, utils.StrToInt(coinId), 114, utils.StrToInt64(canalMsg.Oid))
if err != nil { if err != nil {
sess.Rollback() sess.Rollback()
return err return err


Loading…
Cancel
Save