|
@@ -57,10 +57,10 @@ func (d *ProjectAccountDao) GetAccount(account string) *models.CmProjectAccount
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (d *ProjectAccountDao) GetAccountByAuth(account string) *models.CmProjectAccount {
|
|
|
+func (d *ProjectAccountDao) GetAccountByAuth(account string, projectId int) *models.CmProjectAccount {
|
|
|
data := &models.CmProjectAccount{}
|
|
|
ok, err := d.engine.
|
|
|
- Where("account = ? and jl_auth = 1", account).
|
|
|
+ Where("account = ? and project_id = ? and jl_auth = 1", account, projectId).
|
|
|
Get(data)
|
|
|
if ok && err == nil {
|
|
|
return data
|