@@ -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```
0 commit comments