Explorar o código

支付宝每日对账

peng hai 1 ano
pai
achega
8b19cc7468
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]