瀏覽代碼

测试 极光推送

chenjunkai 6 年之前
父節點
當前提交
606bb4a082
共有 1 個文件被更改,包括 3 次插入0 次删除
  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()