From a8c248bf9d0dd3170dd203e8a322deee3bbc695b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E7=BA=AF=E5=87=80?= <1113655791@qq.com> Date: Wed, 5 Mar 2025 22:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCodes,=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E6=97=B6=E5=80=99,=E5=B0=91?= =?UTF-8?q?=E4=BA=86=E4=BA=A4=E6=98=93=E6=89=80=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codes.go b/codes.go index b657736..daa7fe5 100644 --- a/codes.go +++ b/codes.go @@ -3,7 +3,6 @@ package tdx import ( "github.com/injoyai/logs" "github.com/injoyai/tdx/protocol" - "github.com/robfig/cron/v3" "os" "path/filepath" "time" @@ -145,7 +144,7 @@ func (this *Codes) Code(byDatabase bool) ([]*CodeModel, error) { } } for _, v := range update { - if _, err := session.Where("Code=?", v.Code).Cols("Name").Update(v); err != nil { + if _, err := session.Where("Exchange=? and Code=? ", v.Exchange, v.Code).Cols("Name").Update(v); err != nil { return err } }