修复空文件生成的BUG
This commit is contained in:
parent
b5bc024dd9
commit
be1b3b17e8
@ -9,11 +9,7 @@ ad_type = {'1': '视屏启动', '2': '视频错误回调', '101': 'banner显示'
|
||||
|
||||
if not is_debug:
|
||||
event_list = (
|
||||
(1004, 6001, 'tap_1004'), (1004, 6001, 'tap_new_1004'), (1004, 6001, 'share'), (1004, 6001, 'share_new'),
|
||||
(1004, 6001, 'stage'), (1004, 6001, 'stage_new'), (1004, 6001, 'ad_video'), (1004, 6001, 'ad_video_new'),
|
||||
(1016, 6001, 'shop_1016'), (1016, 6001, 'shop_new_1016'), (1016, 6001, 'tap_1016'),
|
||||
(1016, 6001, 'tap_new_1016'), (2001, 6001, 'tap_2001'), (2001, 6001, 'tap_new_2001'),
|
||||
(1004, 6001, 'items_produce'), (1004, 6001, 'items_consum'), (1004, 6001, 'share_map'))
|
||||
(1016, 6001, 'shop_1016'), (1016, 6001, 'shop_new_1016'))
|
||||
else:
|
||||
event_list = (
|
||||
(1004, 6001, 'tap_1004'), (1004, 6001, 'tap_new_1004'), (1004, 6001, 'share'), (1004, 6001, 'share_new'),
|
||||
|
@ -37,6 +37,7 @@ class TGA_event(GetFromTga):
|
||||
try:
|
||||
temp['id'], temp['num'] = line
|
||||
if temp:
|
||||
log.info(f"will write {temp} 2 tga!")
|
||||
self.write_tga_files(temp)
|
||||
except Exception:
|
||||
log.error(f"write {line} 2 tga failed!", exc_info=True)
|
||||
@ -66,6 +67,7 @@ class TGA_event(GetFromTga):
|
||||
try:
|
||||
temp['id'], temp['num'] = line
|
||||
if temp:
|
||||
log.info(f"will write {temp} 2 tga!")
|
||||
self.write_tga_files(temp)
|
||||
except Exception:
|
||||
log.error(f"write {line} 2 tga failed!", exc_info=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user