Browse Source

测试 极光推送

chenjunkai 6 years ago
parent
commit
606bb4a082
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Controller/Test.py

+ 3 - 0
Controller/Test.py

@@ -37,6 +37,9 @@ class Test(View):
         # return JsonResponse(status=200,data={
         #         'code': 173,
         #         'msg': 'data is not exist'})
+        test_push_type = request_dict.get('test_push_type')
+        if test_push_type == 'jpush':
+            return self.jgPush(request_dict)
         return self.do_fcm_push(request)
         return self.do_gcm_push(request)
         return self.do_alipay_query_status()