Commit 42fd7263 by 高宇强

gyq

parent d586f44c
......@@ -41,7 +41,7 @@ def sceneservers(inputdata):
cur.execute(select_url)
pic = cur.fetchone()
logo_url = pic["pic_url"]
model_id = pic["id"]
model_id = 0
if pic["id"] > 76 and pic["id"] < 83:
model_id = pic["id"] - 76
elif pic["id"] > 84 and pic["id"] < 87:
......
......@@ -616,7 +616,7 @@ def down_customize_logo(gen_json):
lg_gen = tenplateGenerator()
# 判断标语是否存在
# logo_img = Image.open('data/template/6.png')
logo_img = Image.open('logo_down_path')
logo_img = Image.open(logo_down_path)
logo_img = logo_img.convert('RGBA')
# scale = 3
# print(380 * scale, 280 * scale)
......
......@@ -101,8 +101,11 @@ def SaveLogoResource(inputdata,msg_id,cur):
#sptagdata = [{"id":"1"},{"id":"2"},{"id":"3"}]
#取模板id
templatedata = []
dis_max = max(dis_set)
dis_min = min(dis_set)
dis_max = -10.000000
dis_min = -15.000000
if dis_set:
dis_max = max(dis_set)
dis_min = min(dis_set)
select_sql = 'select id from logo_desc where type = "template" '
cur.execute(select_sql)
msgs = cur.fetchall()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment