Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
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
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
wanli
evm-store
Commits
806e0d66
Commit
806e0d66
authored
Mar 24, 2021
by
wanliofficial
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f33137fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
backend/app/setting.py
backend/app/setting.py
+0
-3
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+3
-7
backend/controller/download_manager.py
backend/controller/download_manager.py
+2
-2
No files found.
backend/app/setting.py
View file @
806e0d66
...
...
@@ -25,10 +25,7 @@ config = dict(
},
TABLE_PREFIX
=
'evm_store_'
,
MD5_SALT
=
"EhuqUkwV"
,
<<<<<<<
Updated
upstream
=======
UPLOAD_SERVER
=
"{}://{}:{}/"
.
format
(
conf
.
get
(
'uploads'
,
'protocol'
),
conf
.
get
(
'uploads'
,
'host'
),
conf
.
get
(
'uploads'
,
'port'
)),
>>>>>>>
Stashed
changes
UPLOAD_PATH
=
os
.
getcwd
(),
UPLOAD_DIR
=
conf
.
get
(
'uploads'
,
'upload_dir'
),
TEMPLATE_PATH
=
os
.
path
.
join
(
os
.
getcwd
(),
"static"
),
...
...
backend/controller/apps_manager.py
View file @
806e0d66
...
...
@@ -34,18 +34,14 @@ class AppsManager(object):
def
add
(
self
,
user
,
data
):
with
db_session
:
<<<<<<<
Updated
upstream
editor
=
User
.
get
(
id
=
user
)
=======
if
not
editor
:
return
False
,
"current user is not exists"
result
=
Apps
.
get
(
app_name
=
data
.
get
(
"app_name"
),
is_delete
=
False
)
if
result
:
return
False
,
"app_name has been exists."
editor
=
User
.
get
(
id
=
request
.
current_user
.
get
(
"id"
))
>>>>>>>
Stashed
changes
if
not
editor
:
return
False
,
"current user is not exists"
data
.
update
({
'create_by'
:
editor
,
'create_at'
:
datetime
.
now
(),
...
...
backend/controller/download_manager.py
View file @
806e0d66
...
...
@@ -149,8 +149,8 @@ class DownloadManager(object):
down
=
AppDownload
(
app
=
app
[
0
],
imei
=
data
.
get
(
"imei"
))
commit
()
if
down
:
ip
=
flask_request
.
remote_addr
update_download_information
(
ip
,
down
.
id
)
real_ip
=
flask_request
.
headers
[
'X-Forwarded-For'
]
update_download_information
(
real_
ip
,
down
.
id
)
return
epk_path
,
"get dictionary {}."
.
format
(
"success"
if
epk_path
else
"no data"
)
...
...
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