Commit 42fd7263 by 高宇强

gyq

parent d586f44c
...@@ -41,7 +41,7 @@ def sceneservers(inputdata): ...@@ -41,7 +41,7 @@ def sceneservers(inputdata):
cur.execute(select_url) cur.execute(select_url)
pic = cur.fetchone() pic = cur.fetchone()
logo_url = pic["pic_url"] logo_url = pic["pic_url"]
model_id = pic["id"] model_id = 0
if pic["id"] > 76 and pic["id"] < 83: if pic["id"] > 76 and pic["id"] < 83:
model_id = pic["id"] - 76 model_id = pic["id"] - 76
elif pic["id"] > 84 and pic["id"] < 87: elif pic["id"] > 84 and pic["id"] < 87:
......
...@@ -616,7 +616,7 @@ def down_customize_logo(gen_json): ...@@ -616,7 +616,7 @@ def down_customize_logo(gen_json):
lg_gen = tenplateGenerator() lg_gen = tenplateGenerator()
# 判断标语是否存在 # 判断标语是否存在
# logo_img = Image.open('data/template/6.png') # 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') logo_img = logo_img.convert('RGBA')
# scale = 3 # scale = 3
# print(380 * scale, 280 * scale) # print(380 * scale, 280 * scale)
......
...@@ -101,6 +101,9 @@ def SaveLogoResource(inputdata,msg_id,cur): ...@@ -101,6 +101,9 @@ def SaveLogoResource(inputdata,msg_id,cur):
#sptagdata = [{"id":"1"},{"id":"2"},{"id":"3"}] #sptagdata = [{"id":"1"},{"id":"2"},{"id":"3"}]
#取模板id #取模板id
templatedata = [] templatedata = []
dis_max = -10.000000
dis_min = -15.000000
if dis_set:
dis_max = max(dis_set) dis_max = max(dis_set)
dis_min = min(dis_set) dis_min = min(dis_set)
select_sql = 'select id from logo_desc where type = "template" ' select_sql = 'select id from logo_desc where type = "template" '
......
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