From 9aedbd3532aa652053891f0d5f6b1896fcd813ba Mon Sep 17 00:00:00 2001 From: wzdwc Date: Sun, 26 Apr 2020 07:09:52 +0800 Subject: [PATCH] fix bug --- .idea/workspace.xml | 11 +- client/appveyor.yml | 14 ++ client/public/index.html | 3 +- client/src/utils/request.ts | 2 +- client/src/views/game.vue | 86 +++++++---- server/logs/ELKLog/error.log | 4 + server/logs/ELKLog/info.log | 11 ++ server/logs/game-node-center/agent.log | 36 +++++ server/logs/game-node-center/app.log | 43 ++++++ server/logs/game-node-center/core.log | 22 +++ server/logs/game-node-center/egg-schedule.log | 6 + server/logs/game-node-center/error.log | 29 ++++ server/src/app/core/Player.ts | 11 +- server/src/app/core/PokerGame.ts | 42 ++--- server/src/app/io/controller/game.ts | 112 ++++++-------- server/src/app/io/middleware/join.ts | 45 +++--- server/src/lib/baseSocketController.ts | 34 ++++ server/src/service/account.ts | 2 +- server/test/app/core/pokerGame.test.ts | 146 +++++++++++++++++- server/test/utils/link.test.ts | 19 ++- 20 files changed, 528 insertions(+), 150 deletions(-) create mode 100644 client/appveyor.yml diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f37f0a5..101407f 100755 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,8 +2,9 @@ - - + + + @@ -15,7 +16,11 @@ + + + + diff --git a/client/appveyor.yml b/client/appveyor.yml new file mode 100644 index 0000000..c176fb3 --- /dev/null +++ b/client/appveyor.yml @@ -0,0 +1,14 @@ +environment: + matrix: + - nodejs_version: '10' + +install: + - ps: Install-Product node $env:nodejs_version + - npm i npminstall && node_modules\.bin\npminstall + +test_script: + - node --version + - npm --version + - npm run test + +build: off diff --git a/client/public/index.html b/client/public/index.html index eecdaa0..f86de1c 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -3,7 +3,8 @@ - + + <%= htmlWebpackPlugin.options.title %> diff --git a/client/src/utils/request.ts b/client/src/utils/request.ts index 9baecf2..01806c2 100644 --- a/client/src/utils/request.ts +++ b/client/src/utils/request.ts @@ -2,7 +2,7 @@ import axios, {AxiosRequestConfig, Method} from 'axios'; import cookie from 'js-cookie'; const request = async ({method = 'post' as Method, url = '', body = {}, timeout = 8000}) => { - const origin = 'http://192.168.0.105:7001/node'; + const origin = 'http://192.168.0.101:7001/node'; // const origin = 'http://172.22.72.70:7001/node'; if (!url) { return Promise.reject('Request url is null!'); diff --git a/client/src/views/game.vue b/client/src/views/game.vue index 8543d53..afaf2bf 100644 --- a/client/src/views/game.vue +++ b/client/src/views/game.vue @@ -1,9 +1,11 @@