微信支付退款
This commit is contained in:
@@ -13,7 +13,7 @@ const (
|
||||
|
||||
PayStatusNo = 0
|
||||
PayStatusYes = 1
|
||||
PayStatusRefund = 2
|
||||
PayStatusFailed = 2
|
||||
)
|
||||
|
||||
type ModelTimeInfo struct {
|
||||
@@ -278,11 +278,13 @@ type OrderPay struct {
|
||||
Status int `json:"status"`
|
||||
PayCreatedAt time.Time `orm:"type(datetime);index" json:"payCreatedAt"`
|
||||
PayFinishedAt *time.Time `orm:"type(datetime);null" json:"payFinishedAt"`
|
||||
TotalFee int `json:"totalFee"`
|
||||
|
||||
PrepayID string `orm:"column(prepay_id);unique;size(48)" json:"prepayID"`
|
||||
CodeURL string `orm:"column(code_url);size(256)" json:"codeURL"`
|
||||
PayOrderID string `orm:"column(pay_order_id);size(48)" json:"payOrderID"`
|
||||
OriginalData string `orm:"type(text)" json:"-"`
|
||||
TransactionID string `orm:"column(transaction_id);index;size(48)" json:"transactionID"`
|
||||
PrepayID string `orm:"column(prepay_id);unique;size(48)" json:"prepayID"`
|
||||
CodeURL string `orm:"column(code_url);size(256)" json:"codeURL"`
|
||||
PayOrderID string `orm:"column(pay_order_id);size(48)" json:"payOrderID"`
|
||||
OriginalData string `orm:"type(text)" json:"-"`
|
||||
}
|
||||
|
||||
func (v *OrderPay) TableIndex() [][]string {
|
||||
@@ -291,6 +293,24 @@ func (v *OrderPay) TableIndex() [][]string {
|
||||
}
|
||||
}
|
||||
|
||||
type OrderPayRefund struct {
|
||||
ModelIDCULD
|
||||
|
||||
RefundID string `orm:"column(refund_id);unique;size(48)" json:"refundID"`
|
||||
VendorRefundID string `orm:"column(vendor_refund_id);unique;size(48)" json:"vendorRefundID"`
|
||||
|
||||
AfsOrderID string `orm:"column(afs_order_id);index;size(48)" json:"afsOrderID"`
|
||||
VendorOrderID string `orm:"column(vendor_order_id);index;size(48)" json:"vendorOrderID"`
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
TransactionID string `orm:"column(transaction_id);index;size(48)" json:"transactionID"`
|
||||
Status int `json:"status"`
|
||||
RefundCreatedAt time.Time `orm:"type(datetime);index" json:"payCreatedAt"`
|
||||
RefundFinishedAt *time.Time `orm:"type(datetime);null" json:"payFinishedAt"`
|
||||
RefundFee int `json:"refundFee"`
|
||||
|
||||
OriginalData string `orm:"type(text)" json:"-"`
|
||||
}
|
||||
|
||||
// 判断是否是购买平台自有物流
|
||||
// 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达
|
||||
func IsWaybillPlatformOwn(bill *Waybill) bool {
|
||||
@@ -318,11 +338,9 @@ func IsOrderDeliveryByPlatform(order *GoodsOrder) bool {
|
||||
}
|
||||
|
||||
func IsOrderJXTemp(order *GoodsOrder) bool {
|
||||
// return order.Flag&OrderFlagMaskTempJX != 0
|
||||
return true
|
||||
return order.VendorID == VendorIDJX && order.Flag&OrderFlagMaskTempJX != 0
|
||||
}
|
||||
|
||||
func IsAfsOrderJXTemp(order *AfsOrder) bool {
|
||||
// return order.Flag&OrderFlagMaskTempJX != 0
|
||||
return true
|
||||
return order.VendorID == VendorIDJX && order.Flag&OrderFlagMaskTempJX != 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user