chanjunkai %!s(int64=5) %!d(string=hai) anos
pai
achega
fc48f129b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      object/ResObject.py

+ 1 - 1
object/ResObject.py

@@ -7,7 +7,7 @@ class ResObject(object):
     def __init__(self, lang='cn'):
         self.lang = lang
 
-    def json(self, code, res={}, extra={}):
+    def json(self, code, res={}, extra={'msg':''}):
         msg_data = {
             0: 'Success',
             10: extra['msg']