修改fromappid 获得逻辑

This commit is contained in:
pengtao 2019-10-24 15:41:53 +08:00
parent debc5f8158
commit e4d80b094b

View File

@ -424,7 +424,6 @@ class Report:
args['suffix'] = item.get('suffix', 0)
api_key = item.get('api_key', None)
tga = FromTga(url, api_key)
log.info(f"args={args}")
args['tga'] = tga
temp['all'] = self.get_all_data(**args)
@ -433,6 +432,7 @@ class Report:
mp = MpInterface()
fromappids = mp.get_fromappid_cn(args['gameid'], args['channelid'])
log.info(f"1={fromappids} 2={ss_input_fromappids} 3={ss_output_fromappids}")
if fromappids and ss_input_fromappids:
for item in ss_input_fromappids:
args['fromappid'] = item
@ -447,7 +447,7 @@ class Report:
else:
args['fromappid'] = item
args['fromappid_cn'] = fromappids.get(item, None) or "未知"
temp['output'].append(self.get_input_fromappid(**args))
temp['output'].append(self.get_output_fromappid(**args))
data.append(temp)
return data