diff --git a/TODO b/TODO new file mode 100644 index 0000000..5792b5c --- /dev/null +++ b/TODO @@ -0,0 +1,5 @@ +Todo: + [ ] 使用gin代替原来的框架 + [ ] 重新设计微信支付模块 + [ ] 重新设计IM模块 + [ ] 重新设计定时模块 \ No newline at end of file diff --git a/controllers/client/sign.go b/controllers/client/sign.go index ed82408..37c2074 100644 --- a/controllers/client/sign.go +++ b/controllers/client/sign.go @@ -26,11 +26,6 @@ func (t *SignCtl) CheckSign() { t.CheckErr(err) t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在") - customer := models.Customer{} - exist, err = models.Get(&customer, activity.CustomerId) - t.CheckErr(err) - t.Assert(exist, code.MSG_CUSTOMER_NOT_EXIST, "客户不存在") - area := &models.AreaStore{} exist, err = models.Get(area, areaId) t.CheckErr(err) diff --git a/go.mod b/go.mod index 689325a..cc6c380 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,7 @@ require ( github.com/wailovet/overseer v0.0.0-20190412102736-c280479fa09f // indirect github.com/xormplus/builder v0.0.0-20200331055651-240ff40009be // indirect github.com/xormplus/core v0.0.0-20200308074340-f3bce19d5f31 // indirect - github.com/xormplus/xorm v0.0.0-20200912034818-5d90dcd4e3d6 + github.com/xormplus/xorm v0.0.0-20201020065950-782d727a761a go.uber.org/atomic v1.7.0 go.uber.org/multierr v1.6.0 // indirect go.uber.org/zap v1.16.0 diff --git a/go.sum b/go.sum index 1072246..9d87da0 100644 --- a/go.sum +++ b/go.sum @@ -145,6 +145,8 @@ github.com/xormplus/core v0.0.0-20200308074340-f3bce19d5f31 h1:Xc/TNcIKyvLIp1Y9K github.com/xormplus/core v0.0.0-20200308074340-f3bce19d5f31/go.mod h1:V3p6iAR/MaICgU6GJqxGQxspfljTyfOTv4Czz0B5atU= github.com/xormplus/xorm v0.0.0-20200912034818-5d90dcd4e3d6 h1:8wMAe6KZ0YOG1RvjxyK5VhB29grvQbhb6MZTDIdpSd4= github.com/xormplus/xorm v0.0.0-20200912034818-5d90dcd4e3d6/go.mod h1:+v6b10b4x5IcQmp1/Cbo9IqaknxVeuhQng+fhya6bdI= +github.com/xormplus/xorm v0.0.0-20201020065950-782d727a761a h1:TIJMWUrN8fYGn9penwk6ZtyHMsVvvxaeac6eW6UTu0Q= +github.com/xormplus/xorm v0.0.0-20201020065950-782d727a761a/go.mod h1:+v6b10b4x5IcQmp1/Cbo9IqaknxVeuhQng+fhya6bdI= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= diff --git a/ready.md b/ready.md deleted file mode 100644 index 5505c82..0000000 --- a/ready.md +++ /dev/null @@ -1 +0,0 @@ -go + gorm + mysql \ No newline at end of file