This commit is contained in:
suyl
2021-04-22 16:41:21 +08:00
parent b2c03d6956
commit 910e83ea4b
5 changed files with 40 additions and 28 deletions

View File

@@ -14,9 +14,9 @@ func OnCallback(call *mtunionapi.CallBackResult) (err error) {
if call.Status == mtunionapi.MtUnionOrderStatusFinished {
if order, err := api.MtUnionAPI.Rtnotify(call.Orderid, call.Type); order != nil && err == nil {
unionOrder := &partner.UnionOrderInfo{
JobOrderID: utils.Str2Int64(order.Order.Sid),
Profit: jxutils.StandardPrice2Int(utils.Str2Float64(order.Coupon[0].Profit)),
VendorID: model.VendorIDMTWM,
SID: order.Order.Sid,
Profit: jxutils.StandardPrice2Int(utils.Str2Float64(order.Coupon[0].Profit)),
VendorID: model.VendorIDMTWM,
}
cms.UnionOrderCallBack(unionOrder)
}

View File

@@ -11,14 +11,18 @@ var (
)
const (
LinkTypeWeiXinMini = 1 //微信小程序
LinkTypeH5 = 2 //H5
LinkTypeWeiXinMini = 5 //微信小程序二维码
ShareTypeOther = 1 //分享给别人
ShareTypeOwn = 2 //自己领
MtUnionJxSID = "000000001"
)
type UnionOrderInfo struct {
JobOrderID int64 `json:"jobOrderID"`
Profit int64 `json:"profit"` //订单实际返佣金额
VendorID int `json:"vendorID"`
SID string `json:"sid"`
Profit int64 `json:"profit"` //订单实际返佣金额
VendorID int `json:"vendorID"`
}
type ActivityList struct {