|
@@ -117,7 +117,6 @@ class AiView(View):
|
|
|
with open(file_path, 'wb') as f:
|
|
|
f.write(val)
|
|
|
f.close()
|
|
|
-
|
|
|
image_size = 0 # 每张小图片的大小,等于0是按原图大小进行合并
|
|
|
image_colnum = 1 # 合并成一张图后,一行有几个小图
|
|
|
image_size = MergePic.merge_images(dir_path, image_size, image_colnum)
|
|
@@ -169,7 +168,7 @@ class AiView(View):
|
|
|
n_time=n_time, i=i)
|
|
|
thread_task = threading.Thread(target=self.upload_s3, args=(file_dict, dir_path))
|
|
|
thread_task.start()
|
|
|
-
|
|
|
+ # time.sleep(10)
|
|
|
# 存储消息以及推送
|
|
|
is_st = 3 # 多图
|
|
|
# 查询推送数据
|
|
@@ -391,7 +390,7 @@ class AiView(View):
|
|
|
# 需要删除图片
|
|
|
self.del_path(dir_path)
|
|
|
self.del_path(dir_path + '.jpg')
|
|
|
- return True
|
|
|
+ return True
|
|
|
except Exception as e:
|
|
|
print(repr(e))
|
|
|
return False
|