- UpdatStore时,如果是外卖管理,忽略printerKey
This commit is contained in:
@@ -570,6 +570,13 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
syncStatus |= model.SyncFlagStoreName
|
||||
}
|
||||
globals.SugarLogger.Debug(utils.Format4Output(valid, false))
|
||||
printerVendorID := int(utils.Interface2Int64WithDefault(valid["printerVendorID"], 0))
|
||||
if printerVendorID == 0 {
|
||||
printerVendorID = store.PrinterVendorID
|
||||
}
|
||||
if printerVendorID == model.VendorIDXiaoWM {
|
||||
delete(valid, "printerKey")
|
||||
}
|
||||
// 网络打印机处理
|
||||
if valid["printerVendorID"] != nil || valid["printerSN"] != nil || valid["printerKey"] != nil {
|
||||
if valid["printerVendorID"] == nil {
|
||||
|
||||
Reference in New Issue
Block a user