-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
187 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,6 @@ UserData | |
.vscode | ||
data | ||
PaipuAnalyzer | ||
result | ||
result | ||
tempCodeRunner* | ||
lib/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 0.1.5.{build} | ||
version: 0.2.0.{build} | ||
image: Ubuntu1804 | ||
branches: | ||
only: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 0.1.5.{build} | ||
version: 0.2.0.{build} | ||
branches: | ||
only: | ||
- master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
指牌谱分析使用的语言。目前仅对应中文和基本不能读的英文 | ||
指牌谱分析使用的语言。目前仅对应简体中文,机翻繁体中文和基本不能读的英文 | ||
"language": "zh-CN", | ||
|
||
指牌谱来源。目前来源均为雀魂 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
0.2.0 | ||
|
||
1.对于雀魂0.5版本中和牌数据格式变化的对应 | ||
2.增加选项支持日服和国际服 | ||
3.针对微信登陆的BUG修复;同时为第三方登陆增加登陆专用窗口来避免第三方登陆的问题 | ||
4.牌谱转换时途中流局BUG修复 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"use strict"; | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
var config = undefined; | ||
|
||
function loadconfig(){ | ||
let p = path.join(__dirname, 'config.json'); | ||
if (fs.existsSync(p)) | ||
config = JSON.parse(fs.readFileSync(p).toString()); | ||
else{ | ||
config = { | ||
DefaultURL: 'https://majsoul.union-game.com/0/' | ||
}; | ||
fs.writeFileSync(p, JSON.stringify(config)); | ||
} | ||
} | ||
|
||
var configF = { | ||
get: function (id){ | ||
if (config == undefined) | ||
loadconfig(); | ||
return config[id]; | ||
}, | ||
set: function (id, val){ | ||
config[id] = val; | ||
fs.writeFileSync(path.join(__dirname, 'config.json'), JSON.stringify(config)); | ||
} | ||
} | ||
|
||
module.exports = { | ||
config: configF | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.