Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
1cdbf699
Commit
1cdbf699
authored
Jul 19, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验票
parent
3e0a14b7
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
test.py
test.py
+5
-5
Dockerfile
wn/Dockerfile
+3
-2
main.py
wn/src/main.py
+1
-1
No files found.
test.py
View file @
1cdbf699
This diff is collapsed.
Click to expand it.
wn/Dockerfile
View file @
1cdbf699
...
...
@@ -13,14 +13,15 @@ COPY src/package-lock.json /home/opt/lcc-wn/package-lock.json
RUN
cd
/home/opt/lcc-wn/
&&
npm i
RUN
npm i ffi-napi pm2
COPY
src/src.js /home/opt/lcc-wn/src.js
COPY
src/src2.js /home/opt/lcc-wn/src2.js
COPY
src/jsdom /home/opt/lcc-wn/jsdom
COPY
src/js_dom_run.js /home/opt/lcc-wn/js_dom_run.js
COPY
src/httpUtil.js /home/opt/lcc-wn/httpUtil.js
COPY
src/tls-client-linux-ubuntu-amd64-v1.7.2.so /home/opt/lcc-wn/tls-client-linux-ubuntu-amd64-v1.7.2.so
RUN
#npm i -g pm2
COPY
src/main.py /home/opt/lcc-wn/main.py
COPY
src/src.js /home/opt/lcc-wn/src.js
COPY
src/src2.js /home/opt/lcc-wn/src2.js
COPY
src/run.sh /home/opt/lcc-wn/run.sh
#CMD ["sh", "/home/opt/lcc-wn/run.sh"]
CMD
["python3", "/home/opt/lcc-wn/main.py"]
...
...
wn/src/main.py
View file @
1cdbf699
...
...
@@ -142,7 +142,7 @@ db = client.env
if
not
pathlib
.
Path
(
'env.json'
)
.
exists
():
# , 'success': {'$gte': 30}
# , 'env.navigatorparams.useragent': {'$regex': 'iPhone'}
result
=
db
.
env_shape
.
find
({
'env.funcs'
:{
'$ne'
:
None
}})
result
=
db
.
env_shape
.
find
({
'env.funcs'
:{
'$ne'
:
None
}})
.
limit
(
200
)
# result = db.env_shape.find({'success1' :{'$exists': True}})
data
=
{}
for
x
in
result
:
...
...
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