pengzhibo168 5 жил өмнө
parent
commit
b7e6ab3eb2

+ 1 - 1
Controller/DateController.py

@@ -422,7 +422,7 @@ class DateConView(View):
         {"dayStr": "20201231", "type": "0"}
         ]
 
-        srt=[{"dayStr": h, "type": "该不支持日期,只支持2020年"}]
+        srt=[{"dayStr": h, "type": "该日期不支持,只支持2020年"}]
         for i in day:
             if i['dayStr']==h:
                 print(i)

+ 2 - 0
Object/ResponseObject.py

@@ -143,6 +143,8 @@ class ResponseObject(object):
             message = msg[code]
         except Exception as e:
             message = '系统错误,code不存在'
+        print(self.lang == 'cn')
+        print(msg)
         return {'result_code': code, 'reason': message, 'result': res, 'error_code': code}
 
     def formal(self, code, res={}):