This commit is contained in:
邹宗楠
2022-07-29 10:47:18 +08:00
parent 982a414134
commit ebcb2b60e0
2 changed files with 15 additions and 1 deletions

View File

@@ -15,6 +15,20 @@ const (
SystemTempSizeMedium = "medium"
)
const (
VendorIDUnknown = -1
VendorIDPurchaseBegin = 0
VendorIDJD = 0
VendorIDMTWM = 1
VendorIDPDD = 2 //拼多多
VendorIDEBAI = 3
VendorIDTB = 4 //淘宝
VendorIDJDShop = 5 //京东商城
VendorIDJX = 9 // 这是一个假的京西VendorID
VendorIDPurchaseEnd = 10
VendorIDOther = 999 //其他平台
)
type SystemTemp struct {
ID int `json:"id" db:"id"`
CreatedAt *time.Time `json:"created_at" db:"created_at"`

View File

@@ -36,7 +36,7 @@ func (t *TempServer) MakeSystemTempFontSmall(param map[string]interface{}) (stri
// 订单来源信息
pickupTemp := tempBegin2
orderParams = append(orderParams, orderPrint.VendorName, orderPrint.VendorOrderNo, orderPrint.QRCOrder)
if orderPrint.VendorID == utils.Int2Str(model.VendorIDEBAI) {
if orderPrint.VendorID == utils.Int2Str(tempModel.VendorIDEBAI) {
getCode := fmt.Sprintf(tempEBail, orderPrint.VendorName, orderPrint.EBaiCode)
pickupTemp += getCode
}