Skip to content

Commit 6f7ba62

Browse files
committed
Add debug print for incoming messages and update README
In SparkApiClient, a print statement was added for incoming messages to aid in debugging. The README was also updated to better illustrate the application usage and configuration, this includes images of the interface and directions on how to set the API key (for the integration with Spark API) and the operating systems supported by the software. This update hopes to make onboarding easier for new users and provide insight into possible issues at the time of receiving messages from the API.
1 parent 67c1af8 commit 6f7ba62

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
# 讯飞星火认知模型桌面应用
2-
使用sparkapi进行接口对接
2+
使用sparkapi进行接口对接
3+
4+
## 使用界面
5+
![main.png](img%2Fmain.png)
6+
7+
## 配置
8+
点击me->set key 将科大讯飞注册的应用key填入即可
9+
![use.png](img%2Fuse.png)
10+
11+
## 系统支持
12+
1. windows
13+
2. linux(todo)
14+
3. macos(todo)

img/main.png

50.9 KB
Loading

img/use.png

83.8 KB
Loading

src/main/kotlin/dev/coderpwh/sparkapidesk/client/SparkApiClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class SparkApiClient {
114114
send(reqJson.toByteArray())
115115
while (true) {
116116
val message = incoming.receive() as? Frame.Text ?: continue
117+
println(message.readText())
117118
val resp = json.decodeFromString<RespPayload>(message.readText())
118119
if(msgList.last().id == resp.header.sid) {
119120
var last = msgList.last()

0 commit comments

Comments
 (0)