瀏覽代碼

update

master
shenjiachi 1 天之前
父節點
當前提交
cabf4ae850
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      src/implement/egg_friend_circle_basic_implement.go

+ 4
- 1
src/implement/egg_friend_circle_basic_implement.go 查看文件

@@ -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
}



Loading…
取消
儲存