Browse Source

fix:bug

token_replace
黄梓健 4 years ago
parent
commit
b47f62efe0
  1. 8
      controllers/pc/upper_wall.go
  2. 2
      go.mod
  3. 2
      go.sum

8
controllers/pc/upper_wall.go

@ -96,10 +96,9 @@ func (t *UpperWallCtl) Review() {
// false 通过
if !status {
result := make([]*UpperWallResult, 0)
err := core.GetXormAuto().Table("ox_upper_wall").Alias("w").
Join("LEFT", "ox_user as u", "w.user_id=u.id and u.is_delete=0").
Where("w.is_delete=0").In("w.id", ids).
OrderBy("w.created_at asc").Find(&result)
err := core.GetXormAuto().Table(&models.UpperWall{}).Alias("w").
Join("LEFT", (&models.User{}).Alias("u"), "w.user_id=u.id and u.is_delete=0").
Where("w.is_delete=0").In("w.id", ids).Asc("w.created_at asc").Find(&result)
t.CheckErr(err)
if len(result) == 0 {
t.ERROR("不存在上墙消息", code.MSG_DATA_NOT_EXIST)
@ -200,6 +199,7 @@ func (t *UpperWallCtl) Details() {
t.CheckErr(err)
if !exist {
t.ERROR("上墙服务模块不存在", code.MSG_ERR)
return
}
t.JSON(map[string]interface{}{
"msg_wall": msgWall,

2
go.mod

@ -41,7 +41,7 @@ require (
go.uber.org/atomic v1.6.0
go.uber.org/zap v1.15.0
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a // indirect
golang.org/x/sys v0.0.0-20200805065543-0cf7623e9dbd // indirect
golang.org/x/sys v0.0.0-20200806060901-a37d78b92225 // indirect
google.golang.org/appengine v1.6.5 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/olahol/melody.v1 v1.0.0-20170518105555-d52139073376

2
go.sum

@ -517,6 +517,8 @@ golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200805065543-0cf7623e9dbd h1:wefLe/3g5tC0FcXw3NneLA5tHgbyouyZlfcSjNfOdgk=
golang.org/x/sys v0.0.0-20200805065543-0cf7623e9dbd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200806060901-a37d78b92225 h1:a5kp7Ohh+lqGCGHUBQdPwGHTJXKNhVVWp34F+ncDC9M=
golang.org/x/sys v0.0.0-20200806060901-a37d78b92225/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=

Loading…
Cancel
Save