GeezerVison is showing github.com — 优化日志配置;优化 /post/verify 获取验证码接口;APIJSONBoot 升级 apijson-column 版本为 1.0.… · MEKBK/APIJSON-Demo@c4c27c4
File tree
Expand file treeCollapse file tree
Open diff view settings
src/main/java/apijson/boot
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONBoot/pom.xml +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
49 | 49 | <artifactId>classgraph</artifactId> |
50 | 50 | <version>4.8.87</version> |
51 | 51 | </dependency> |
52 | | - <!-- 单元测试:可使用 libs 目录的 unitauto-java.jar 和 unitauto-jar.jar 来替代,两种方式二选一 |
53 | | - >>>>>>>>> --> |
| 52 | + <!-- 单元测试:可使用 libs 目录的 unitauto-java.jar 和 unitauto-jar.jar 来替代,两种方式二选一 >>>>>>>>> --> |
54 | 53 |
|
55 | 54 |
|
56 | 55 | <!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 <<<<<<<<<< --> |
|
67 | 66 | <dependency> |
68 | 67 | <groupId>com.github.APIJSON</groupId> |
69 | 68 | <artifactId>apijson-column</artifactId> |
70 | | - <version>1.0.0</version> |
| 69 | + <version>1.0.1</version> |
71 | 70 | </dependency> |
72 | 71 | <!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 >>>>>>>>>> --> |
73 | 72 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/boot/DemoApplication.java +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -247,7 +247,8 @@ public static void main(String[] args) throws Exception { |
247 | 247 |
|
248 | 248 | // FIXME 不要开放给项目组后端之外的任何人使用 UnitAuto(强制登录鉴权)!!!如果不需要单元测试则移除相关代码或 unitauto.Log.DEBUG = false; |
249 | 249 | // 上线生产环境前改为 false,可不输出 APIJSONORM 的日志 以及 SQLException 的原始(敏感)信息 |
250 | | - APIJSONParser.isPrintErrorLog = unitauto.Log.DEBUG = Log.DEBUG = true; |
| 250 | + unitauto.Log.DEBUG = Log.DEBUG = true; |
| 251 | + APIJSONParser.IS_PRINT_BIG_LOG = true; |
251 | 252 | APIJSONApplication.init(); |
252 | 253 | } |
253 | 254 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/boot/DemoController.java +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -363,12 +363,8 @@ public JSONObject postVerify(@RequestBody String request) { |
363 | 363 | newVerifyRequest(type, phone, "" + (new Random().nextInt(9999) + 1000)) |
364 | 364 | ); |
365 | 365 |
|
366 | | - JSONObject verify = null; |
367 | | - try { |
368 | | - verify = response.getJSONObject(StringUtil.firstCase(VERIFY_)); |
369 | | - } catch (Exception e) {} |
370 | 366 |
|
371 | | - if (verify == null || JSONResponse.isSuccess(verify.getIntValue(JSONResponse.KEY_CODE)) == false) { |
| 367 | + if (JSONResponse.isSuccess(response) == false) { |
372 | 368 | new DemoParser(DELETE, false).parseResponse(new JSONRequest(new Verify(type, phone))); |
373 | 369 | return response; |
374 | 370 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONFinal/pom.xml +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | <groupId>apijson.jfinal</groupId> |
5 | 5 | <artifactId>apijson-final</artifactId> |
6 | 6 | <packaging>jar</packaging> |
7 | | - <version>4.6.6</version> |
| 7 | + <version>4.6.7</version> |
8 | 8 | <name>Demo project for APIJSON Server based on JFinal</name> |
9 | 9 | <url>http://maven.apache.org</url> |
10 | 10 | <dependencies> |
|
26 | 26 | <dependency> |
27 | 27 | <groupId>com.github.Tencent</groupId> |
28 | 28 | <artifactId>APIJSON</artifactId> |
29 | | - <version>4.6.6</version> |
| 29 | + <version>4.6.7</version> |
30 | 30 | </dependency> |
31 | 31 | <dependency> |
32 | 32 | <groupId>com.github.APIJSON</groupId> |
33 | 33 | <artifactId>apijson-framework</artifactId> |
34 | | - <version>4.6.6</version> |
| 34 | + <version>4.6.7</version> |
35 | 35 | </dependency> |
36 | 36 | <!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> --> |
37 | 37 |
|
|