diff --git a/app/db/model/mall_ord.go b/app/db/model/mall_ord.go index 22b3e74..24c45ad 100644 --- a/app/db/model/mall_ord.go +++ b/app/db/model/mall_ord.go @@ -102,6 +102,7 @@ type MallOrd struct { PayDiscountMoney string `json:"pay_discount_money" xorm:"default '0.00' comment('供应链同一商家总运费') DECIMAL(12,2)"` IsDeductDiscount int `json:"is_deduct_discount" xorm:"comment('') INT(11)"` IsShareMoney int `json:"is_share_money" xorm:"default 0 comment('') INT(11)"` + PayTradeNo string `json:"pay_trade_no" xorm:"comment('支付联盟支付的订单号') VARCHAR(50)"` PayOid string `json:"pay_oid" xorm:" default '' comment('') VARCHAR(255)"` ShareMoneyOid string `json:"share_money_oid" xorm:" default '' comment('') VARCHAR(255)"` MerchantNo string `json:"merchant_no" xorm:" default '' comment('') VARCHAR(255)"` diff --git a/consume/yibao_order_share_money_mall.go b/consume/yibao_order_share_money_mall.go index 1707c94..03f41e2 100644 --- a/consume/yibao_order_share_money_mall.go +++ b/consume/yibao_order_share_money_mall.go @@ -88,7 +88,7 @@ func handleZhiosYibao0rderShareMoneyMallExchange(msg []byte) error { } uid = v.Uid uniqueOrderNo = v.TransactionId - payOid = v.PayOid + payOid = v.PayTradeNo payMethod = v.PayChannel MerchantNo = v.MerchantNo fee = utils.StrToFloat64(v.TotalShippingFee)