This commit is contained in:
suyl
2021-05-27 14:47:08 +08:00
parent 3edfaadbfa
commit 16aab5156c

View File

@@ -427,13 +427,23 @@ func NotifyOrderCanceled(order *model.GoodsOrder) (err error) {
suffix = storeDetail.CityName + "," + storeDetail.Name suffix = storeDetail.CityName + "," + storeDetail.Name
} }
title := fmt.Sprintf(suffix+"老板,您的订单%s第%d号订单, %s被取消了", model.VendorChineseNames[order.VendorID], order.OrderSeq, order.VendorOrderID) title := fmt.Sprintf(suffix+"老板,您的订单%s第%d号订单, %s被取消了", model.VendorChineseNames[order.VendorID], order.OrderSeq, order.VendorOrderID)
var price int64
if beego.BConfig.RunMode == "jxgy" {
price = order.NewEarningPrice
} else {
if order.EarningType == model.EarningTypePoints {
price = order.ActualPayPrice
} else {
price = order.EarningPrice
}
}
data := map[string]interface{}{ data := map[string]interface{}{
"first": map[string]interface{}{ "first": map[string]interface{}{
"value": title, "value": title,
"color": WX_NEW_ORDER_TEMPLATE_COLOR, "color": WX_NEW_ORDER_TEMPLATE_COLOR,
}, },
"orderProductPrice": map[string]interface{}{ "orderProductPrice": map[string]interface{}{
"value": jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), "value": jxutils.IntPrice2StandardCurrencyString(price),
"color": WX_NEW_ORDER_TEMPLATE_COLOR, "color": WX_NEW_ORDER_TEMPLATE_COLOR,
}, },
"orderProductName": map[string]interface{}{ "orderProductName": map[string]interface{}{