Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
999cbdef
Commit
999cbdef
authored
May 22, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
42fd7263
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ailogo/GetLogo.py
+6
-2
No files found.
ailogo/GetLogo.py
View file @
999cbdef
...
...
@@ -34,12 +34,16 @@ def getLogoUrl(inputdata):
elif
log_id
>
84
and
log_id
<
87
:
model_id
=
log_id
-
78
if
type
==
"standard"
or
(
model_id
>=
0
and
model_id
<=
8
):
select_url
=
'select pic_url from logo_desc where id =
%
s'
%
log_id
select_url
=
'select * from logo_desc where id =
%
s'
%
log_id
cur
.
execute
(
select_url
)
pic
=
cur
.
fetchone
()
logo_url
=
pic
[
"pic_url"
]
else
:
select_url
=
'select
pic_url
from big_template where small_id =
%
s'
%
log_id
select_url
=
'select
*
from big_template where small_id =
%
s'
%
log_id
cur
.
execute
(
select_url
)
pic
=
cur
.
fetchone
()
logo_url
=
pic
[
"pic_url"
]
brand_location
=
pic
[
"text_pos"
]
select_url
=
'select name from logo_font where id =
%
s'
%
font_id
cur
.
execute
(
select_url
)
pic1
=
cur
.
fetchone
()
...
...
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