Browse Source

update

master
shenjiachi 1 day ago
parent
commit
cabf4ae850
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/implement/egg_friend_circle_basic_implement.go

+ 4
- 1
src/implement/egg_friend_circle_basic_implement.go View File

@@ -17,10 +17,13 @@ type EggFriendCircleBasicDb struct {


func (e EggFriendCircleBasicDb) EggFriendCircleBasicGetOne() (*model.EggFriendCircleBasic, error) { func (e EggFriendCircleBasicDb) EggFriendCircleBasicGetOne() (*model.EggFriendCircleBasic, error) {
var m model.EggFriendCircleBasic var m model.EggFriendCircleBasic
_, err := e.Db.Where("id >= ?", 1).Get(&m)
has, err := e.Db.Where("id >= ?", 1).Get(&m)
if err != nil { if err != nil {
return nil, zhios_order_relate_logx.Error(err.Error()) return nil, zhios_order_relate_logx.Error(err.Error())
} }
if has == false {
return nil, nil
}
return &m, nil return &m, nil
} }




Loading…
Cancel
Save