fix 扫码

This commit is contained in:
ZJY 2021-10-02 22:33:03 +08:00
parent df4353e29c
commit 24a5793157
3 changed files with 6 additions and 2 deletions

View File

@ -202,7 +202,7 @@ func (ck *JdCookie) Removes(values interface{}) {
db.Model(ck).Delete(values)
}
if ck.PtPin != "" {
db.Model(&JdCookiePool{}).Where(PtPin+" = ?", ck.PtPin).Delete(values)
db.Model(&JdCookiePool{}).Where(PtPin+" = ?", ck.PtPin).Delete(&JdCookiePool{PtPin: ck.PtPin})
db.Model(ck).Where(PtPin+" = ?", ck.PtPin).Delete(values)
}
}

View File

@ -11,7 +11,7 @@ import (
"github.com/beego/beego/v2/core/logs"
)
var version = "20211001"
var version = "20211002"
var describe = "国庆版本"
var AppName = "xdd"
var pname = regexp.MustCompile(`/([^/\s]+)`).FindStringSubmatch(os.Args[0])[1]

View File

@ -7,6 +7,10 @@
# 更新日志
## 10-02
- 修复删除指令没有删除jdcookiepool
## 10-01
- 大家安心过节 国庆快乐