HoshinoTented 5 years ago
parent
commit
30941fa35f

+ 10 - 0
.gitignore

@@ -1,2 +1,12 @@
 /.idea/
+
+# Gradle
 /gradle/
+.gradle/
+
+# Gen
+build/
+
+# config
+device.json
+/config/

+ 1 - 1
mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/service/heartbeat/HeartBeatService.kt

@@ -23,7 +23,7 @@ import kotlin.concurrent.timerTask
  */
 class HeartBeatService(override val console: JvmPlugin) : MiraiApiHttpService {
 
-    val config = Setting.heartbeat
+    val config get() = Setting.heartbeat
 
     /**
      * 心跳计时器

+ 1 - 1
mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/service/report/ReportService.kt

@@ -41,7 +41,7 @@ class ReportService(
     /**
      * 心跳配置
      */
-    private val reportConfig = Setting.report
+    private val reportConfig get() = Setting.report
 
     /**
      * 事件监听器