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
42ec638e
Commit
42ec638e
authored
Jul 22, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(): 修复获取url参数错误bug
parent
baeb2548
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tools/build_out/controllers/api.py
tools/build_out/controllers/api.py
+5
-3
No files found.
tools/build_out/controllers/api.py
View file @
42ec638e
'''
'''
Author: your name
Author: your name
Date: 2021-07-12 11:14:48
Date: 2021-07-12 11:14:48
LastEditTime: 2021-07-22 1
7:54:40
LastEditTime: 2021-07-22 1
8:00:06
LastEditors: Please set LastEditors
LastEditors: Please set LastEditors
Description: In User Settings Edit
Description: In User Settings Edit
FilePath:
\
evm-store
\t
ools
\b
uild_out
\
controllers
\a
ppi.py
FilePath:
\
evm-store
\t
ools
\b
uild_out
\
controllers
\a
ppi.py
...
@@ -66,7 +66,9 @@ class BuildAppResource(object):
...
@@ -66,7 +66,9 @@ class BuildAppResource(object):
if
not
user
:
if
not
user
:
return
False
,
ResponseCode
.
USER_NOT_EXISTS
return
False
,
ResponseCode
.
USER_NOT_EXISTS
print
(
user
)
host_url
=
params
.
get
(
"host_url"
)
if
not
host_url
:
return
False
,
ResponseCode
.
HTTP_INVAILD_REQUEST
params
.
update
({
params
.
update
({
'app_icon'
:
params
.
get
(
'app_icon'
,
''
),
'app_icon'
:
params
.
get
(
'app_icon'
,
''
),
...
@@ -134,7 +136,7 @@ class BuildAppResource(object):
...
@@ -134,7 +136,7 @@ class BuildAppResource(object):
# with open(os.sep.join([target_dir, "epk.json"]), "w") as f:
# with open(os.sep.join([target_dir, "epk.json"]), "w") as f:
# json.dump(app.to_dict(), f)
# json.dump(app.to_dict(), f)
return
{
'app_name'
:
app
.
app_name
,
'app_file'
:
"{}.epk"
.
format
(
app
.
app_name
),
'app_url'
:
urljoin
(
params
.
get
(
"host_url"
)
,
epk_path
)
},
ResponseCode
.
HTTP_SUCCESS
return
{
'app_name'
:
app
.
app_name
,
'app_file'
:
"{}.epk"
.
format
(
app
.
app_name
),
'app_url'
:
urljoin
(
host_url
,
epk_path
)
},
ResponseCode
.
HTTP_SUCCESS
buildAppResource
=
BuildAppResource
()
buildAppResource
=
BuildAppResource
()
...
...
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