chenjunkai преди 5 години
родител
ревизия
e0fdc9fe56
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      Controller/UserController.py

+ 1 - 0
Controller/UserController.py

@@ -1270,6 +1270,7 @@ class InitInfoView(View):
         # region = request_dict.get('region', '')  # 语言区域
         nowTime = int(time.time())
         if all([token_val, push_type, appBundleId]):
+            push_type = int(push_type)
             if push_type == 0:
                 if appBundleId not in APNS_CONFIG.keys():
                     return response.json(904)