Explorar o código

增加IM推送华为推送配置

Pq hai 1 ano
pai
achega
b2d95afc0e

+ 9 - 0
student/src/main/java/com/cooleshow/student/helper/ImPushConfigHelper.java

@@ -12,6 +12,8 @@ public class ImPushConfigHelper {
     public static final long oppoPushBussinessId_RELEASE = 31630;
     public static final long vivoPushBussinessId_DEBUG = 31485;
     public static final long vivoPushBussinessId_RELEASE = 31631;
+    public static final long huaweiPushBussinessId_DEBUG = 31634;
+    public static final long huaweiPushBussinessId_RELEASE = 31635;
 
     public static long getXiaomiPushBussinessId() {
         if (BuildConfig.DEBUG) {
@@ -33,4 +35,11 @@ public class ImPushConfigHelper {
         }
         return vivoPushBussinessId_RELEASE;
     }
+
+    public static long getHuaweiPushBussinessId() {
+        if (BuildConfig.DEBUG) {
+            return huaweiPushBussinessId_DEBUG;
+        }
+        return huaweiPushBussinessId_RELEASE;
+    }
 }

+ 1 - 0
student/src/main/java/com/cooleshow/student/helper/InitHelper.java

@@ -52,6 +52,7 @@ public class InitHelper {
             PrivateConstants.oppoPushAppKey="5b2b716e774c45f2bd9a90b242b295e9";
             PrivateConstants.oppoPushAppSecret="d762e374ea3a430091c5df63a944f429";
             PrivateConstants.vivoPushBussinessId=ImPushConfigHelper.getVivoPushBussinessId();
+            PrivateConstants.huaweiPushBussinessId=ImPushConfigHelper.getHuaweiPushBussinessId();
         }
     }
 }

+ 9 - 0
teacher/src/main/java/com/cooleshow/teacher/helper/ImPushConfigHelper.java

@@ -11,6 +11,8 @@ public class ImPushConfigHelper {
     public static final long xiaomiPushBussinessId_RELEASE = 31633;
     public static final long oppoPushBussinessId_DEBUG = 31626;
     public static final long oppoPushBussinessId_RELEASE = 31632;
+    public static final long huaweiPushBussinessId_DEBUG = 31636;
+    public static final long huaweiPushBussinessId_RELEASE = 31637;
 //    public static final long vivoPushBussinessId_DEBUG = 31485;
 //    public static final long vivoPushBussinessId_RELEASE = 31631;
 
@@ -34,4 +36,11 @@ public class ImPushConfigHelper {
 //        }
 //        return vivoPushBussinessId_RELEASE;
 //    }
+
+    public static long getHuaweiPushBussinessId() {
+        if (BuildConfig.DEBUG) {
+            return huaweiPushBussinessId_DEBUG;
+        }
+        return huaweiPushBussinessId_RELEASE;
+    }
 }

+ 1 - 1
teacher/src/main/java/com/cooleshow/teacher/helper/InitHelper.java

@@ -52,7 +52,7 @@ public class InitHelper {
             PrivateConstants.oppoPushBussinessId=ImPushConfigHelper.getOppoPushBussinessId();
             PrivateConstants.oppoPushAppKey="e2e0eff48d6145c0b9f87cd6a57636ad";
             PrivateConstants.oppoPushAppSecret="da211156f91147769426de785650edcf";
-//            PrivateConstants.vivoPushBussinessId=30512;
+            PrivateConstants.huaweiPushBussinessId=ImPushConfigHelper.getHuaweiPushBussinessId();
         }
     }
 }