Skip to content

Commit 822e615

Browse files
authored
Merge pull request #18 from libxengine/develop
V3.2.0.1001 Merge
2 parents 5f2fb0c + f5757bf commit 822e615

76 files changed

Lines changed: 350 additions & 1164 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
XEngine_APIService V3.2.0.1001
2+
3+
增加:编译开关日志提示
4+
增加:lua脚本功能开关编译选项
5+
修改:LUA,二维码和图像处理现在默认关闭
6+
修改:LUA,二维码和图像处理没有启用的时候返回501了
7+
修改:现在makefile支持linux和macos的编译开关了
8+
修改:不在需要bank和id处理的utf转换了
9+
修改:重新设计了语言翻译从有道改为百度
10+
修改:翻译语言日志提示
11+
修改:翻译类型使用枚举型替代
12+
修复:没有启用音频还开始录制的问题
13+
删除:lua init 变量
14+
删除:OPENCC库和相关代码已经被移除使用翻译替代
15+
16+
added:build switch tips
17+
added:lua buid switch
18+
modify:lua and qr and image switch defualt is close
19+
modify:lua and qr and image reply is 501 when they is disable
20+
modify:makefile support linux and macos for build switch
21+
modify:does not need utf convert for bank and idcard
22+
modify:Redesigning translation from youdao to baidu
23+
modify:translation language tips
24+
modify:translation type used enum instead.
25+
fixed:not enable audio then start
26+
delete:lua init value
27+
delete:opencc library and code,use translation instead
28+
======================================================================================
129
XEngine_APIService V3.1.0.1001
230

331
增加:为opencv和qr增加自定义编译开关

README.en.md

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,20 @@ Support privatization deployment, free, safe, open source, controllable
3535
14. Bank card verification
3636
15. Exchange rate calculation (planned)
3737
16. QR code generation and parse
38-
17. Simplified and Traditional Conversion
39-
18. Twenty-four solar terms (planned)
40-
19. Xinhua Dictionary
41-
20. Metering Conversion
42-
21. network test
43-
22. Distributed lock
44-
23. short url creator and forward
45-
24. local system time
46-
25. math Calculation
47-
26. log service
48-
27. Plugin hot reload
49-
28. Sensitive word detection
50-
29. remote control(back management)
51-
30. Image Process
52-
31. process deamon
38+
17. Twenty-four solar terms (planned)
39+
18. Translation
40+
19. Metering Conversion
41+
20. network test
42+
21. Distributed lock
43+
22. short url creator and forward
44+
23. local system time
45+
24. math Calculation
46+
25. log service
47+
26. Plugin hot reload
48+
27. Sensitive word detection
49+
28. remote control(back management)
50+
29. Image Process
51+
30. process deamon
5352

5453
## install
5554

@@ -69,18 +68,18 @@ MYSQL database version 8.0 or above is required. Create a table through CreateDa
6968
Modify the database configuration in XSQL in the configuration file to your
7069

7170
#### Windows
72-
need to vcpkg configure third-part env.refer vcpkg install guide.after installed and execution:vcpkg.exe install lua:x86-windows opencc:x86-windows opencv[contrib]:x86-windows libqrencode:x86-windows lua:x64-windows opencc:x64-windows opencv[contrib]:x64-windows libqrencode:x64-windows
71+
need to vcpkg configure third-part env.refer vcpkg install guide.after installed and execution:vcpkg.exe install lua:x86-windows opencv[contrib]:x86-windows libqrencode:x86-windows lua:x64-windows opencv[contrib]:x64-windows libqrencode:x64-windows
7372
use vs open and compile,suport windows 7sp1 and above
7473
Just Run it
7574

7675
#### Linux
77-
ubuntu:sudo apt install libopencc-dev
76+
ubuntu:sudo apt install sudo apt install liblua5.4-dev libopencv-dev libopencv-contrib-dev libqrencode-dev
7877
centos:compile by self
7978
use makefile compile,UBUNTU22.04 x64 or RockyLinux 9 x64
8079
Run it on the terminal
8180

8281
#### Macos
83-
install opencc:brew install opencc opencc opencv qrencode
82+
install opencc:brew install lua opencv qrencode
8483
use makefile compile,mac 13 and above
8584
Run it on the terminal
8685

@@ -165,28 +164,16 @@ api:http://app.xyry.org:5501/api?function=bank&params1=6214832830000000
165164
"msg":"success"
166165
}
167166
```
168-
language
169-
api:http://app.xyry.org:5501/api?function=language&params1=简体到繁体&params2=1
170-
```json
171-
{
172-
"code":0,
173-
"data":{
174-
"enType":1,
175-
"tszDestStr":"簡體到繁體",
176-
"tszSourceStr":"简体到繁体"
177-
},
178-
"msg":"success"
179-
}
180-
```
181167
translation
182-
api:http://app.xyry.org:5501/api?function=translation&params1=中国&params2=0
168+
api:http://127.0.0.1:5501/api?function=translation&msg=中文翻译成英文&src=1&dst=2
183169
```json
184170
{
185171
"code":0,
186172
"data":{
187-
"enType":0,
188-
"tszDestStr":"China",
189-
"tszSourceStr":"中国"
173+
"tszDestStr":"Translate from Chinese to English",
174+
"tszFromStr":"zh",
175+
"tszSourceStr":"中文翻译成英文",
176+
"tszToStr":"en"
190177
},
191178
"msg":"success"
192179
}

README.md

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,20 @@ c c++ interface api service
3434
14. 银行卡验证
3535
15. 汇率计算(计划中)
3636
16. 二维码生成解析
37-
17. 简繁转换
38-
18. 二十四节气(计划中)
39-
19. 新华词典
40-
20. 计量转换
41-
21. 网络测试
42-
22. 分布式锁API
43-
23. 短连接生成和转发
44-
24. 本地标准时间
45-
25. 数学计算
46-
26. 日志服务
47-
27. 插件脚本热重载
48-
28. 敏感词检测
49-
29. 远程控制(后台管理)
50-
30. 图像处理
51-
31. 进程守护
37+
17. 二十四节气(计划中)
38+
18. 翻译
39+
19. 计量转换
40+
20. 网络测试
41+
21. 分布式锁API
42+
22. 短连接生成和转发
43+
23. 本地标准时间
44+
24. 数学计算
45+
25. 日志服务
46+
26. 插件脚本热重载
47+
27. 敏感词检测
48+
28. 远程控制(后台管理)
49+
29. 图像处理
50+
30. 进程守护
5251

5352
## 安装教程
5453

@@ -68,18 +67,18 @@ macos执行:./XEngine_LINEnv.sh -i 3
6867
修改配置文件里面XSQL里面的数据库配置为你的
6968

7069
#### Windows
71-
需要vcpkg配置第三方环境,具体参考vcpkg安装方式,安装好后执行:vcpkg.exe install lua:x86-windows opencc:x86-windows opencv[contrib]:x86-windows libqrencode:x86-windows lua:x64-windows opencc:x64-windows opencv[contrib]:x64-windows libqrencode:x64-windows
70+
需要vcpkg配置第三方环境,具体参考vcpkg安装方式,安装好后执行:vcpkg.exe install lua:x86-windows opencv[contrib]:x86-windows libqrencode:x86-windows lua:x64-windows opencv[contrib]:x64-windows libqrencode:x64-windows
7271
使用VS打开并且编译,支持WINDOWS 7SP1以上系统
7372
直接运行即可
7473

7574
#### Linux
76-
ubuntu:sudo apt install liblua5.3-dev libopencc-dev libopencv-dev libopencv-contrib-dev libqrencode-dev
75+
ubuntu:sudo apt install liblua5.4-dev libopencv-dev libopencv-contrib-dev libqrencode-dev
7776
centos:需要自己编译
7877
Linux使用Makefile编译,UBUNTU22.04 x64或者RockyLinux 9 x64
7978
在控制台运行
8079

8180
#### Macos
82-
安装opencc,执行命令:brew install lua opencc opencv qrencode
81+
安装opencc,执行命令:brew install lua opencv qrencode
8382
使用makefile编译,控制台运行,需要mac 13以及以上版本
8483
在控制台运行
8584

@@ -163,28 +162,16 @@ make FLAGS=CleanAll 清理编译
163162
"msg":"success"
164163
}
165164
```
166-
语言转换
167-
接口:http://app.xyry.org:5501/api?function=language&params1=简体到繁体&params2=1
168-
```json
169-
{
170-
"code":0,
171-
"data":{
172-
"enType":1,
173-
"tszDestStr":"簡體到繁體",
174-
"tszSourceStr":"简体到繁体"
175-
},
176-
"msg":"success"
177-
}
178-
```
179165
翻译
180-
接口:http://app.xyry.org:5501/api?function=translation&params1=中国&params2=0
166+
接口:http://127.0.0.1:5501/api?function=translation&msg=中文翻译成英文&src=1&dst=2
181167
```json
182168
{
183169
"code":0,
184170
"data":{
185-
"enType":0,
186-
"tszDestStr":"China",
187-
"tszSourceStr":"中国"
171+
"tszDestStr":"Translate from Chinese to English",
172+
"tszFromStr":"zh",
173+
"tszSourceStr":"中文翻译成英文",
174+
"tszToStr":"en"
188175
},
189176
"msg":"success"
190177
}

XEngine_Docment/Docment_en.docx

-398 Bytes
Binary file not shown.

XEngine_Docment/Docment_zh.docx

104 Bytes
Binary file not shown.

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@
3030
},
3131
"XApi":{
3232
"tszBankUrl":"https://ccdcapi.alipay.com/validateAndCacheCardInfo.json?cardNo=%s&cardBinCheck=true",
33-
"tszTranslationUrl":"http://fanyi.youdao.com/translate?&doctype=json&type=%s&i=%s"
33+
"tszTranslationUrl":"https://fanyi-api.baidu.com/api/trans/vip/translate",
34+
"st_TranslationInfo":{
35+
"appid":"20231228001924304",
36+
"key":"udXGjpmNVeQHml1FjT8E"
37+
}
3438
},
3539
"XPlugin":{
3640
"bEnable":true,
3741
"tszPluginLib":"./XEngine_Config/XEngine_PluginLib.json",
3842
"tszPluginLua":"./XEngine_Config/XEngine_PluginLua.json"
3943
},
4044
"XConfig":{
41-
"tszConfigOPencc":"./XEngine_Config/XEngine_OPenccConfig.json",
4245
"tszConfigQRCode":"./XEngine_Config/XEngine_QRCode.json",
4346
"tszConfigDeamon":"./XEngine_Config/XEngine_DeamonConfig.json",
4447
"tszConfigHTTPMime":"./XEngine_Config/HttpMime.types",
@@ -52,11 +55,12 @@
5255
"tszUserName":"xyry",
5356
"tszUserPass":"11",
5457
"st_VerSwitch":{
55-
"bBackService":false,
56-
"bDeamon":false
58+
"bBackService":true,
59+
"bDeamon":true
5760
}
5861
},
5962
"XVer":[
63+
"3.2.0.1001 Build20231229",
6064
"3.1.0.1001 Build20231102",
6165
"3.0.0.1001 Build20230908",
6266
"2.11.0.1001 Build20230829",

XEngine_Release/XEngine_Config/XEngine_OPenccConfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.
-4.78 KB
Binary file not shown.
-4.81 KB
Binary file not shown.
-6.87 KB
Binary file not shown.

0 commit comments

Comments
 (0)