From 82195fb096ccb590a3f37a97158e189289373122 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Thu, 11 Aug 2022 09:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/pln/implments/ToyotaCallOffCheck.impl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/pln/implments/ToyotaCallOffCheck.impl.go b/services/pln/implments/ToyotaCallOffCheck.impl.go index 54e3d42..99e852a 100644 --- a/services/pln/implments/ToyotaCallOffCheck.impl.go +++ b/services/pln/implments/ToyotaCallOffCheck.impl.go @@ -18,11 +18,13 @@ import ( "fmt" "reflect" "strconv" + "strings" "time" ) // Check 南沙发运校验 func (impl *ToyotaCalloffServiceImplement) Check(user *global.User, barcode string) error { + barcode = strings.TrimSpace(barcode) engine := db.Eloquent.Master() session := engine.NewSession() defer session.Close()