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
ca408f41
Commit
ca408f41
authored
Mar 24, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a36d5206
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
backend/controller/download_manager.py
backend/controller/download_manager.py
+1
-1
backend/controller/login_manager.py
backend/controller/login_manager.py
+1
-1
backend/model/download.py
backend/model/download.py
+1
-0
backend/model/login_logs.py
backend/model/login_logs.py
+1
-0
No files found.
backend/controller/download_manager.py
View file @
ca408f41
...
@@ -52,7 +52,7 @@ def update_download_information(ip, id):
...
@@ -52,7 +52,7 @@ def update_download_information(ip, id):
with
db_session
:
with
db_session
:
down
=
AppDownload
.
get
(
id
=
id
)
down
=
AppDownload
.
get
(
id
=
id
)
if
down
:
if
down
:
down
.
set
(
address
=
jsonData
[
'address'
],
remarks
=
json
.
dumps
(
jsonData
[
'content'
],
ensure_ascii
=
False
))
down
.
set
(
address
=
jsonData
[
'address'
],
ip
=
ip
,
remarks
=
json
.
dumps
(
jsonData
[
'content'
],
ensure_ascii
=
False
))
commit
()
commit
()
def
convert_url_to_local_path
(
url
):
def
convert_url_to_local_path
(
url
):
...
...
backend/controller/login_manager.py
View file @
ca408f41
...
@@ -50,7 +50,7 @@ def update_login_information(ip, user_id):
...
@@ -50,7 +50,7 @@ def update_login_information(ip, user_id):
if
not
user
:
if
not
user
:
return
return
LoginLogs
(
username
=
user
.
username
,
address
=
jsonData
[
'address'
],
create_by
=
user
,
remarks
=
json
.
dumps
(
jsonData
[
'content'
],
ensure_ascii
=
False
))
LoginLogs
(
username
=
user
.
username
,
ip
=
ip
,
address
=
jsonData
[
'address'
],
create_by
=
user
,
remarks
=
json
.
dumps
(
jsonData
[
'content'
],
ensure_ascii
=
False
))
commit
()
commit
()
class
LoginManager
(
object
):
class
LoginManager
(
object
):
...
...
backend/model/download.py
View file @
ca408f41
...
@@ -15,6 +15,7 @@ class AppDownload(db.Entity):
...
@@ -15,6 +15,7 @@ class AppDownload(db.Entity):
uuid
=
Required
(
uuid
.
UUID
,
unique
=
True
,
default
=
uuid
.
uuid1
,
index
=
True
)
uuid
=
Required
(
uuid
.
UUID
,
unique
=
True
,
default
=
uuid
.
uuid1
,
index
=
True
)
app
=
Optional
(
"Apps"
,
reverse
=
"app_download"
)
app
=
Optional
(
"Apps"
,
reverse
=
"app_download"
)
imei
=
Required
(
str
)
imei
=
Required
(
str
)
ip
=
Optional
(
str
)
address
=
Optional
(
str
)
address
=
Optional
(
str
)
download_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
download_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
is_delete
=
Required
(
bool
,
default
=
False
)
is_delete
=
Required
(
bool
,
default
=
False
)
...
...
backend/model/login_logs.py
View file @
ca408f41
...
@@ -14,6 +14,7 @@ class LoginLogs(db.Entity):
...
@@ -14,6 +14,7 @@ class LoginLogs(db.Entity):
id
=
PrimaryKey
(
int
,
auto
=
True
)
id
=
PrimaryKey
(
int
,
auto
=
True
)
uuid
=
Required
(
uuid
.
UUID
,
unique
=
True
,
default
=
uuid
.
uuid1
,
index
=
True
)
uuid
=
Required
(
uuid
.
UUID
,
unique
=
True
,
default
=
uuid
.
uuid1
,
index
=
True
)
username
=
Optional
(
str
)
username
=
Optional
(
str
)
ip
=
Optional
(
str
)
address
=
Optional
(
str
)
address
=
Optional
(
str
)
create_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
create_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
create_by
=
Optional
(
"User"
,
reverse
=
'login_logs_creater'
)
create_by
=
Optional
(
"User"
,
reverse
=
'login_logs_creater'
)
...
...
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