ソースを参照

支付宝每日对账

peng 1 年間 前
コミット
8b19cc7468
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Controller/Cron/CronTaskController.py

+ 1 - 1
Controller/Cron/CronTaskController.py

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