dengbiao 1 周之前
父節點
當前提交
e8960db339
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      internal/business/api/business_ext.go

+ 2
- 2
internal/business/api/business_ext.go 查看文件

@@ -271,12 +271,12 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p
}

var businessUser business.User
err := db.DB.First(&businessUser, "phone_number = ?", user.PhoneNumber).Error
err := db.BusinessDB.First(&businessUser, "phone_number = ?", user.PhoneNumber).Error
if err != nil && err != gorm.ErrRecordNotFound {
return nil, gerrors.WrapError(err)
}
var businessUserLevel business.UserLevel
err = db.DB.First(&businessUserLevel, "id = ?", businessUser.Level).Error
err = db.BusinessDB.First(&businessUserLevel, "id = ?", businessUser.Level).Error
if err != nil && err != gorm.ErrRecordNotFound {
return nil, gerrors.WrapError(err)
}


Loading…
取消
儲存