Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
9060fe45
Commit
9060fe45
authored
Oct 21, 2022
by
wqc
Committed by
王健飞
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
共享平台婚姻、殡葬接口
parent
1a6db85c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
api-server/src/main/java/com/zq/api/controller/ApiController.java
+2
-2
api-server/src/main/java/com/zq/api/service/ApiService.java
+4
-1
No files found.
api-server/src/main/java/com/zq/api/controller/ApiController.java
View file @
9060fe45
...
...
@@ -43,9 +43,9 @@ public class ApiController {
* 2016年10月3日 下午1:38:27
*/
@RequestMapping
(
"/action"
)
public
ApiResp
action
(
ApiForm
form
,
@RequestHeader
(
required
=
false
)
String
appId
,
@RequestHeader
(
required
=
false
)
String
appSecret
,
@RequestHeader
(
required
=
false
)
String
Authorization
,
HttpServletRequest
request
)
{
public
ApiResp
action
(
@RequestHeader
(
required
=
false
)
String
appId
,
@RequestHeader
(
required
=
false
)
String
appSecret
,
@RequestHeader
(
required
=
false
)
String
Authorization
,
HttpServletRequest
request
)
{
long
start
=
System
.
currentTimeMillis
();
ApiForm
form
=
ServletUtil
.
toBean
(
request
,
ApiForm
.
class
,
true
);
// 不处理Request Method:OPTIONS的请求
if
(
request
.
getMethod
().
equals
(
"OPTIONS"
))
{
return
ApiUtils
.
getSuccessResp
(
form
);
...
...
api-server/src/main/java/com/zq/api/service/ApiService.java
View file @
9060fe45
package
com
.
zq
.
api
.
service
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.codec.Base64
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.URLUtil
;
import
com.zq.api.dao.ApiLogDao
;
import
com.zq.api.entity.ApiLog
;
import
com.zq.api.entity.ApiUser
;
...
...
@@ -20,6 +22,7 @@ import org.springframework.scheduling.annotation.Async;
import
org.springframework.stereotype.Service
;
import
java.lang.reflect.Method
;
import
java.nio.charset.StandardCharsets
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
@@ -40,7 +43,7 @@ public class ApiService {
/**
* 允许用户未登录状态下执行的方法名
*/
private
final
String
[]
allowMethod
=
{
"sendCode"
,
"resetPassword"
,
"phoneLogin"
,
"passwdLogin"
,
"getAppVersion"
};
private
final
String
[]
allowMethod
=
{
"sendCode"
,
"resetPassword"
,
"phoneLogin"
,
"passwdLogin"
,
"getAppVersion"
,
"cremationSearch"
,
"marriageSearch"
,
"naturalPersonSearch"
};
private
static
final
List
<
String
>
METHOD_LIST
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment