1
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user