shenjiachi 1 giorno fa
parent
commit
cabf4ae850
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      src/implement/egg_friend_circle_basic_implement.go

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

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

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



Caricamento…
Annulla
Salva