Skip to content

Commit 3970dbf

Browse files
committed
chore: update README
1 parent 4f36201 commit 3970dbf

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ Perfect work development process, complete online solution
5757
- [zfoo sdk of csharp and lua for unity and godot](https://github.com/zfoo-project/zfoo-sdk-csharp-lua-unity-godot)
5858
- [zfoo sdk typescript javascript cocos web h5](https://github.com/zfoo-project/zfoo-sdk-typescript-javascript-cocos-web-h5)
5959
- [zfoo sdk gdscript for godot](https://github.com/zfoo-project/zfoo-sdk-gdscript-godot)
60-
- [jc-site](https://github.com/zfoo-project/jc-site) AI website
61-
- [tank-game-server](https://github.com/zfoo-project/tank-game-server)
6260
- [godot-bird](https://github.com/zfoo-project/godot-bird) bird and bird,powered by godot
6361
- [FAQ](./doc/FAQ.md),There are standard demo display and instructions in the test folder of each project directory,
6462
which can be run directly
@@ -88,12 +86,12 @@ public void atUserInfoAsk(Session session, UserInfoAsk ask) {
8886
}
8987
9088
// Consumers, synchronously requesting remote service, will block the current thread
91-
var userInfoAsk = UserInfoAsk.valueOf(userId);
92-
var answer = NetContext.getCosumer().syncAsk(userInfoAsk, UserInfoAnswer.class, userId).packet();
89+
var ask = UserInfoAsk.valueOf(userId);
90+
var answer = NetContext.getCosumer().syncAsk(ask, UserInfoAnswer.class, userId).packet();
9391
9492
// Consumers, asynchronously requesting remote service, and will still execute logic in the current thread after the asynchronous
95-
NetContext.getCosumer().asyncAsk(userInfoAsk, UserInfoAnswer.class, userId)
96-
.whenComplete(sm -> {
93+
NetContext.getCosumer().asyncAsk(ask, UserInfoAnswer.class, userId)
94+
.whenComplete(answer -> {
9795
// do something
9896
);
9997
```

README_CN.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262

6363
- [zfoo sdk gdscript for godot](https://github.com/zfoo-project/zfoo-sdk-gdscript-godot)
6464

65-
- [jc-site](https://github.com/zfoo-project/jc-site) AI聚合网站
66-
67-
- [tank-game-server](https://github.com/zfoo-project/tank-game-server)
68-
6965
- [godot-bird](https://github.com/zfoo-project/godot-bird) 鸟了个鸟,客户端使用godot开发,服务器依然使用的tank-game-server
7066

7167

@@ -94,12 +90,12 @@ public void atUserInfoAsk(Session session, UserInfoAsk ask) {
9490
}
9591
9692
// 消费者,同步请求远程用户信息,会阻塞当前的线程,慎重考虑使用同步请求
97-
var userInfoAsk = UserInfoAsk.valueOf(userId);
98-
var answer = NetContext.getCosumer().syncAsk(userInfoAsk, UserInfoAnswer.class, userId).packet();
93+
var ask = UserInfoAsk.valueOf(userId);
94+
var answer = NetContext.getCosumer().syncAsk(ask, UserInfoAnswer.class, userId).packet();
9995
10096
// 消费者,异步请求远程用户信息,不会柱塞当前的线程,异步请求成功过后依然会在当前线程执行逻辑
101-
NetContext.getCosumer().asyncAsk(userInfoAsk, UserInfoAnswer.class, userId)
102-
.whenComplete(sm -> {
97+
NetContext.getCosumer().asyncAsk(ask, UserInfoAnswer.class, userId)
98+
.whenComplete(answer -> {
10399
// do something
104100
);
105101
```

0 commit comments

Comments
 (0)