Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-api
Commits
8f2e01b2
Commit
8f2e01b2
authored
Jul 17, 2020
by
温海元
Browse files
Options
Browse Files
Download
Plain Diff
add qiaoling&lili
parents
3ecd68a5
227b4afc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
user.js
app/controller/user.js
+2
-1
repoServiceNew.js
app/service/repoServiceNew.js
+0
-1
No files found.
app/controller/user.js
View file @
8f2e01b2
...
@@ -14,6 +14,7 @@ const authenticate = require('../service/authenticate')
...
@@ -14,6 +14,7 @@ const authenticate = require('../service/authenticate')
const
router
=
new
Router
()
const
router
=
new
Router
()
const
admin
=
[
'
qiaoling.yu
'
,
'
lili.wang
'
,
'
zhijie.xue
'
,
'
luoyong.meng
'
,
'
jinfang.liu
'
,
'
qiuyue.gui
'
,
'
yong.zhi
'
,
'
haiyuan.wen
'
]
const
admin
=
[
'
qiaoling.yu
'
,
'
lili.wang
'
,
'
zhijie.xue
'
,
'
luoyong.meng
'
,
'
jinfang.liu
'
,
'
qiuyue.gui
'
,
'
yong.zhi
'
,
'
haiyuan.wen
'
]
const
login
=
async
function
(
ctx
)
{
const
login
=
async
function
(
ctx
)
{
const
{
body
}
=
ctx
.
request
const
{
body
}
=
ctx
.
request
...
@@ -67,7 +68,7 @@ const checkTokenNew = async (ctx) => {
...
@@ -67,7 +68,7 @@ const checkTokenNew = async (ctx) => {
const
{
token
}
=
ctx
.
request
.
query
const
{
token
}
=
ctx
.
request
.
query
const
info
=
await
ctx
.
redisGet
(
config
.
QA_TOKEN
,
token
)
const
info
=
await
ctx
.
redisGet
(
config
.
QA_TOKEN
,
token
)
if
(
info
)
{
if
(
info
)
{
const
role
=
admin
.
includes
(
info
.
SAMACCOUNTNAME
)
?
[
'
admin
'
]
:
[
'
user
'
]
const
role
=
admin
.
includes
(
info
.
SAMACCOUNTNAME
||
info
.
sAMAccountName
)
?
[
'
admin
'
]
:
[
'
user
'
]
if
(
info
.
title
&&
info
.
title
.
indexOf
(
'
测试
'
)
!==
-
1
)
{
if
(
info
.
title
&&
info
.
title
.
indexOf
(
'
测试
'
)
!==
-
1
)
{
role
.
push
(
'
test
'
)
role
.
push
(
'
test
'
)
...
...
app/service/repoServiceNew.js
View file @
8f2e01b2
...
@@ -53,7 +53,6 @@ async function getRepoOfNs(ctx, ns) {
...
@@ -53,7 +53,6 @@ async function getRepoOfNs(ctx, ns) {
// 把tag信息拉平到appname上
// 把tag信息拉平到appname上
const
m
=
[]
const
m
=
[]
console
.
log
(
1
,
repos
)
repos
.
forEach
((
item
)
=>
{
repos
.
forEach
((
item
)
=>
{
const
tags
=
item
.
tags
||
[
LASTEST
]
const
tags
=
item
.
tags
||
[
LASTEST
]
tags
.
forEach
((
tag
)
=>
{
tags
.
forEach
((
tag
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment