浏览代码

优化分享设备错误码提示

zhangdongming 1 年之前
父节点
当前提交
95604e86b5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Controller/DeviceShare.py

+ 2 - 1
Controller/DeviceShare.py

@@ -43,9 +43,10 @@ class DeviceShareView(View):
     def validation(self, request_dict, operation):
         response = ResponseObject()
         token = request_dict.get('token', None)
+        lang = request_dict.get('lang', None)
         if token:
             tko = TokenObject(token)
-            response.lang = tko.lang
+            response.lang = lang if lang else tko.lang
             if tko.code == 0:
                 userID = tko.userID
                 if operation == 'generateTokenUrl':