1
This commit is contained in:
@@ -267,7 +267,15 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
|
||||
}
|
||||
|
||||
orderSel := utils.Int2Str(order.VendorID) + utils.Int2Str(order.OrderSeq)
|
||||
return c.PrintMsg(ctx, store.PrinterSN, orderSel, "", string(orderPrint))
|
||||
if order.VendorOrderID == "3301223263215186716" {
|
||||
globals.SugarLogger.Debugf("----------------:%s", string(orderPrint))
|
||||
}
|
||||
dataSuls, err := c.PrintMsg(ctx, store.PrinterSN, orderSel, "", string(orderPrint))
|
||||
if order.VendorOrderID == "3301223263215186716" {
|
||||
globals.SugarLogger.Debugf("----------------:%s", utils.Format4Output(dataSuls, false))
|
||||
globals.SugarLogger.Debugf("----------------:%v", err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printType int, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder) (printerStatus *partner.PrinterStatus, err error) {
|
||||
|
||||
@@ -4,7 +4,9 @@ import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/bidding"
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
@@ -108,3 +110,17 @@ func (c *BiddingController) UpdateTiktokOrderPhoneAddress() {
|
||||
return nil, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// JXPrintAfsOrder 售后单打印
|
||||
// @Title 售后单打印
|
||||
// @Description 售后单打印
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /JXPrintAfsOrder [get]
|
||||
func (c *BiddingController) JXPrintAfsOrder() {
|
||||
c.callJXPrintAfsOrder(func(params *tBindJXPrintAfsOrderParams) (interface{}, string, error) {
|
||||
afsOrder2, _ := partner.CurOrderManager.LoadAfsOrder("3301223263215186716", model.VendorIDMTWM)
|
||||
err := scheduler.CurrentScheduler.OnAfsOrderNew(afsOrder2, false)
|
||||
return nil, "", err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -4442,6 +4442,15 @@ func init() {
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:BiddingController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:BiddingController"],
|
||||
web.ControllerComments{
|
||||
Method: "JXPrintAfsOrder",
|
||||
Router: `/JXPrintAfsOrder`,
|
||||
AllowHTTPMethods: []string{"get"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
// 版本设置
|
||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:VersionController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:VersionController"],
|
||||
web.ControllerComments{
|
||||
|
||||
Reference in New Issue
Block a user