Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
添加图灵机器人和测试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Jun 18, 2017
1 parent cc13330 commit db7d415
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/io/github/biezhi/wechat/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.github.biezhi.wechat.robot.MoliRobot;
import io.github.biezhi.wechat.model.Environment;
import io.github.biezhi.wechat.robot.TulingRobot;
import io.github.biezhi.wechat.ui.StartUI;

/**
Expand All @@ -17,7 +18,7 @@ public static void main(String[] args) throws Exception {

StartUI startUI = new StartUI(environment);

startUI.setMsgHandle(new MoliRobot(environment));
startUI.setMsgHandle(new TulingRobot(environment));
startUI.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private String getResult(String question) {
try {
Response response = okHttpClient.newCall(request).execute();
TulingRet tulingRet = Utils.fromJson(response.body().string(), TulingRet.class);
if (tulingRet.code == 00000) {
if (tulingRet.code == 100000) {
return tulingRet.text;
}
} catch (Exception e) {
Expand Down

0 comments on commit db7d415

Please sign in to comment.