diff --git a/business/jxstore/cms/print.go b/business/jxstore/cms/print.go index d0d89068e..162ebb3ff 100644 --- a/business/jxstore/cms/print.go +++ b/business/jxstore/cms/print.go @@ -84,9 +84,9 @@ func AddPrinter(appID int, printers []*model.Printer) (err error) { func checkPrinterInfo(printNo, name, sound, sim string, volume int) (err error) { if sim != "" { - if regexpMobile.FindString(sim) == "" { - return fmt.Errorf("请输入正确的sim卡号码!print_no : %v ", printNo) - } + //if regexpMobile.FindString(sim) == "" { + return fmt.Errorf("暂不支持修改sim卡号码!print_no : %v ", printNo) + //} } if volume != 0 { if volume <= 0 || volume > 5 { @@ -151,14 +151,14 @@ func UpdatePrinter(appID int, printNo string, name, sim, sound *string, volume * } if sim != nil { if *sim != "" { - if regexpMobile.FindString(*sim) == "" { - return fmt.Errorf("请输入正确的sim卡号码!print_no : %v ", printNo) - } - } - if printers[0].SIM != *sim { - printers[0].SIM = *sim - fields = append(fields, "sim") + //if regexpMobile.FindString(*sim) == "" { + return fmt.Errorf("暂不支持修改sim卡号码!print_no : %v ", printNo) + //} } + //if printers[0].SIM != *sim { + // printers[0].SIM = *sim + // fields = append(fields, "sim") + //} } if sound != nil { if *sound != "" {