Browse Source

支付宝每日对账

peng 1 year ago
parent
commit
b210236689
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/Cron/CronTaskController.py

+ 1 - 1
Controller/Cron/CronTaskController.py

@@ -1355,7 +1355,7 @@ class CronComparedDataView(View):
                 for file in zip_ref.namelist():
                 for file in zip_ref.namelist():
                     if '汇总' not in file.encode('cp437').decode('gbk'):
                     if '汇总' not in file.encode('cp437').decode('gbk'):
                         with zip_ref.open(file) as f:
                         with zip_ref.open(file) as f:
-                            reader = csv.reader(io.TextIOWrapper(f, 'utf-8'))
+                            reader = csv.reader(io.TextIOWrapper(f, 'gbk'))
                             for row in reader:
                             for row in reader:
                                 data.append(row)
                                 data.append(row)
             key_list = data[4]
             key_list = data[4]