1
This commit is contained in:
@@ -346,6 +346,10 @@ func (c *PrinterHandler) GetPrinterStatus(ctx *jxcontext.Context, printerSN, pri
|
||||
}
|
||||
|
||||
func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder, printType string, asfOrder *model.AfsOrder) (printerStatus *partner.PrinterStatus, err error) {
|
||||
// 这个门店只打饿了么
|
||||
if store.ID == 669264 && order.VendorID == model.VendorIDMTWM {
|
||||
return nil, nil
|
||||
}
|
||||
if len(order.Skus) == 0 {
|
||||
return
|
||||
}
|
||||
@@ -363,6 +367,10 @@ func (c *PrinterHandler) PrintStore(ctx *jxcontext.Context, store *model.Store,
|
||||
}
|
||||
|
||||
func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printType int, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder) (printerStatus *partner.PrinterStatus, err error) {
|
||||
// 这个门店只打饿了么
|
||||
if store.ID == 669264 && order.VendorID == model.VendorIDMTWM {
|
||||
return nil, nil
|
||||
}
|
||||
if len(order.Skus) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -3,8 +3,6 @@ package controllers
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/partner/im"
|
||||
@@ -80,7 +78,6 @@ func (c *IMController) SendToVendorV2() {
|
||||
b := bytes.NewBufferString(params.SendData)
|
||||
decoder := json.NewDecoder(b)
|
||||
if err = decoder.Decode(&sendData); err == nil {
|
||||
fmt.Println(sendData)
|
||||
if err = im.SendVendorV2(sendData, params.VendorOrgCode); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user