Skip to content

Commit 618a5cf

Browse files
committed
Java: MultiDataSource 内置 UnitAuto-Admin 新增支持 C++ 零代码单元测试
1 parent 53bd6e8 commit 618a5cf

File tree

1 file changed

+2
-2
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/unit/js

1 file changed

+2
-2
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/unit/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ https://github.com/Tencent/APIJSON/issues
13951395
var clazz = StringUtil.trim(index < 0 ? url : url.substring(index + 1))
13961396
var lang = this.language
13971397
if (StringUtil.isBigName(clazz) != true) {
1398-
if (lang == CodeUtil.LANGUAGE_GO) {
1398+
if (lang == CodeUtil.LANGUAGE_GO || lang == CodeUtil.LANGUAGE_C_PLUS_PLUS) {
13991399
return ''
14001400
}
14011401

@@ -1418,7 +1418,7 @@ https://github.com/Tencent/APIJSON/issues
14181418
var cls = url.substring(index + 1)
14191419
var pkg = index < 0 ? '' : url.substring(0, index)
14201420

1421-
if (this.language == CodeUtil.LANGUAGE_GO && StringUtil.isBigName(cls) != true) {
1421+
if ((this.language == CodeUtil.LANGUAGE_GO || this.language == CodeUtil.LANGUAGE_C_PLUS_PLUS) && StringUtil.isBigName(cls) != true) {
14221422
pkg = StringUtil.isEmpty(pkg) ? cls : pkg + '.' + cls
14231423
}
14241424
return StringUtil.trim(pkg)

0 commit comments

Comments
 (0)