kk 4 周之前
父節點
當前提交
20bea2779f
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. 11 11
      game-business/src/main/java/com/game/business/util/im/TencentCloudImUtil.java

+ 11 - 11
game-business/src/main/java/com/game/business/util/im/TencentCloudImUtil.java

@@ -26,8 +26,8 @@ import java.util.zip.Deflater;
 public class TencentCloudImUtil {
     private static String HTTPS_URL_PREFIX = "https://adminapisgp.im.qcloud.com/";
     private static String APP_MANAGER = "administrator";
-    private static long sdkAppId = 20009542;
-    private static String key = "3cc3c3c35228510985ce4a6f1933ee941bbf646fa385d7aee3dd459c531b935a";
+    private static long sdkAppId = 20011345;
+    private static String key = "6c103e689f98d40af60df2ad4b82ec5fc4604acb51ec89b5077eab9999e3cd6b";
     private static final int EXPIRETIME = 30 * 24 * 60 * 60;
 
 
@@ -549,13 +549,13 @@ public class TencentCloudImUtil {
         return null;
     }
 
-//    public static void main(String[] args) {
-//        JSONObject paramJson = new JSONObject();
-//        paramJson.put("type", "UserSystemNotify");
-//        paramJson.put("subType", "UserRefreshBalance");
-//        paramJson.put("content", JSONObject.parseObject("{'msg':'刷新余额'}"));
-//        List<String> userIdList = new ArrayList<>();
-//        userIdList.add("10133");
-//        TencentCloudImUtil.imPushBatchSendMsg(userIdList, paramJson.toString());
-//    }
+    public static void main(String[] args) {
+        JSONObject paramJson = new JSONObject();
+        paramJson.put("type", "UserSystemNotify");
+        paramJson.put("subType", "UserRefreshBalance");
+        paramJson.put("content", JSONObject.parseObject("{'msg':'刷新余额'}"));
+        List<String> userIdList = new ArrayList<>();
+        userIdList.add("10133");
+        TencentCloudImUtil.imPushBatchSendMsg(userIdList, paramJson.toString());
+    }
 }