GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MySQL:更新表;Demo:APIJSONFinal 解决远程函数 verifyAccess 判断角色的方式错误 · oliavn/APIJSON-Demo@f9e49be

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo
    • DemoFunctionParser.java
  • MySQL
    • single
      • sys_Access.sql
      • sys_Comment.sql
      • sys_Document.sql
      • sys_Function.sql
      • sys_Login.sql
      • sys_Method.sql
      • sys_Moment.sql
      • sys_Praise.sql
      • sys_Random.sql
      • sys_Request.sql
      • sys_TestRecord.sql
      • sys_Verify.sql
      • sys__Visit.sql
      • sys_apijson_privacy.sql
      • sys_apijson_user.sql
      • sys_routines.sql
    • sys.sql
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoFunctionParser.java‎

Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoFunctionParser.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import apijson.RequestMethod;
2929
import apijson.StringUtil;
3030
import apijson.framework.APIJSONFunctionParser;
31+
import apijson.orm.AbstractVerifier;
3132
import apijson.orm.JSONRequest;
3233

3334

@@ -212,7 +213,7 @@ public JSONArray getIdList(@NotNull JSONObject current) {
212213
public Object verifyAccess(@NotNull JSONObject current) throws Exception {
213214
long userId = current.getLongValue(JSONRequest.KEY_USER_ID);
214215
String role = current.getString(JSONRequest.KEY_ROLE);
215-
if (role == apijson.orm.AbstractVerifier.OWNER && userId != DemoVerifier.getVisitorId(getSession())) {
216+
if (AbstractVerifier.OWNER.equals(role) && userId != DemoVerifier.getVisitorId(getSession())) {
216217
throw new IllegalAccessException("登录用户与角色OWNER不匹配!");
217218
}
218219
return null;
Collapse file

‎MySQL/single/sys_Access.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Access.sql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ UNLOCK TABLES;
6161
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
6262
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
6363

64-
-- Dump completed on 2021-10-20 4:58:02
64+
-- Dump completed on 2021-10-23 23:52:28
Collapse file

‎MySQL/single/sys_Comment.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Comment.sql
+3-3Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
Collapse file

‎MySQL/single/sys_Document.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Document.sql
+4-3Lines changed: 4 additions & 3 deletions
Large diffs are not rendered by default.
Collapse file

‎MySQL/single/sys_Function.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Function.sql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ UNLOCK TABLES;
5858
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5959
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
6060

61-
-- Dump completed on 2021-10-20 4:57:16
61+
-- Dump completed on 2021-10-23 23:51:50
Collapse file

‎MySQL/single/sys_Login.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Login.sql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ UNLOCK TABLES;
5050
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5151
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5252

53-
-- Dump completed on 2021-10-20 4:58:00
53+
-- Dump completed on 2021-10-23 23:52:32
Collapse file

‎MySQL/single/sys_Method.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Method.sql
+3-3Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
Collapse file

‎MySQL/single/sys_Moment.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Moment.sql
+3-3Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
Collapse file

‎MySQL/single/sys_Praise.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Praise.sql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ UNLOCK TABLES;
5050
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
5151
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5252

53-
-- Dump completed on 2021-10-20 4:57:55
53+
-- Dump completed on 2021-10-23 23:52:29
Collapse file

‎MySQL/single/sys_Random.sql‎

Copy file name to clipboardExpand all lines: MySQL/single/sys_Random.sql
+3-3Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.