From 894706de5ae6225a3ea961927983d329b033e588 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 16 Dec 2023 18:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/zhios_guide_store_order_success.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consume/zhios_guide_store_order_success.go b/consume/zhios_guide_store_order_success.go index 114fe14..6ccc531 100644 --- a/consume/zhios_guide_store_order_success.go +++ b/consume/zhios_guide_store_order_success.go @@ -137,7 +137,7 @@ func fail(eg *xorm.Engine, canalMsg *md.ZhiosGuideStoreOrder) error { //直接退回账号了 定制 storeOrder := db.GuideStoreOrderSess(sess, utils.StrToInt64(canalMsg.Oid)) if m != nil { - if storeOrder != nil && utils.StrToFloat64(storeOrder.DeductPrice) > 0 { + if storeOrder != nil && utils.StrToFloat64(storeOrder.DeductPrice) > 0 && storeOrder.DeductState == 1 { coinId := db.SysCfgGetWithDb(eg, canalMsg.Mid, "guide_store_coin_id") err := UpdateUserVirtualCoinFinValidAndInterFlow(sess, utils.AnyToString(storeOrder.DeductPrice), "商品("+storeOrder.Gid+")退款退回", "0", 1, storeOrder.StoreId, utils.StrToInt(coinId), 114, utils.StrToInt64(canalMsg.Oid))