明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
zengfanpei
letian_backend
Commits
5371570d
Commit
5371570d
authored
Dec 20, 2024
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:放开虫请垃圾数据
parent
54f09a07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
collectIPSController.js
controller/collectIPSController.js
+1
-1
userModule.js
module/userModule.js
+1
-1
No files found.
controller/collectIPSController.js
View file @
5371570d
...
...
@@ -14,7 +14,7 @@ const collectIPSModule = require('../module/collectIPSModule');
*/
async
function
list
(
req
,
res
,
next
)
{
try
{
let
search
=
{
del
:
0
,
typeCount
:
{
$gte
:
1
},
newCount
:
{
$gte
:
1
}
};
let
search
=
{
del
:
0
};
if
(
req
.
body
.
name
)
{
search
.
name
=
{
$regex
:
req
.
body
.
name
}
}
...
...
module/userModule.js
View file @
5371570d
...
...
@@ -38,7 +38,7 @@ async function findOneAndUpdate(filter, updateObj) {
async
function
getRoleMenus
(
roles
,
mobile
)
{
let
menuIds
=
[],
buttonIds
=
[],
buts
=
[],
mes
=
[];
if
(
mobile
==
"11111111111"
)
{
buts
=
await
DB
.
Menu
.
find
({
del
:
0
}).
lean
().
exec
();
buts
=
await
DB
.
Menu
.
find
({
del
:
0
,
type
:
2
}).
lean
().
exec
();
mes
=
await
DB
.
Menu
.
find
({
del
:
0
,
type
:
1
,
enable
:
true
}).
populate
({
path
:
"parentIds"
}).
lean
().
exec
();
}
else
{
for
(
let
index
=
0
;
index
<
roles
.
length
;
index
++
)
{
...
...
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