Browse Source

支付宝每日对账

peng 1 năm trước cách đây
mục cha
commit
8b19cc7468
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]