Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beijing-vehicleflow
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhenbang
beijing-vehicleflow
Commits
8bb1309a
Commit
8bb1309a
authored
Feb 24, 2020
by
zhangzhenbang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试探性写了一两个接口
parent
8e33252f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
+4
-19
IdentityInfoController.java
...beijingvehicleflow/controller/IdentityInfoController.java
+3
-3
application.yml
src/main/resources/application.yml
+1
-16
No files found.
src/main/java/com/yingxin/beijingvehicleflow/controller/IdentityInfoController.java
View file @
8bb1309a
...
@@ -35,8 +35,8 @@ public class IdentityInfoController {
...
@@ -35,8 +35,8 @@ public class IdentityInfoController {
* @param json {"code":""}
* @param json {"code":""}
* @return com.yingxin.covid19prevention.response.Response
* @return com.yingxin.covid19prevention.response.Response
*/
*/
@PostMapping
(
"/
resident
/exist/state"
)
@PostMapping
(
"/
identity
/exist/state"
)
public
Response
is
Resident
Exist
(
@RequestBody
String
json
)
{
public
Response
is
IdentityInfo
Exist
(
@RequestBody
String
json
)
{
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
json
);
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
json
);
JSONObject
jsonAfterLogin
=
identityInformationService
.
getwechatInfoByTempCode
(
jsonObject
.
getString
(
"code"
));
JSONObject
jsonAfterLogin
=
identityInformationService
.
getwechatInfoByTempCode
(
jsonObject
.
getString
(
"code"
));
...
@@ -55,7 +55,7 @@ public class IdentityInfoController {
...
@@ -55,7 +55,7 @@ public class IdentityInfoController {
* @param json code、iv、encryptedData
* @param json code、iv、encryptedData
* @return com.yingxin.covid19prevention.response.Response userId
* @return com.yingxin.covid19prevention.response.Response userId
*/
*/
@PostMapping
(
"/
resident
/wechat"
)
@PostMapping
(
"/
identity
/wechat"
)
public
Response
getDecryptData
(
@RequestBody
String
json
)
{
public
Response
getDecryptData
(
@RequestBody
String
json
)
{
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
json
);
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
json
);
String
tempCode
=
jsonObject
.
getString
(
"code"
);
String
tempCode
=
jsonObject
.
getString
(
"code"
);
...
...
src/main/resources/application.yml
View file @
8bb1309a
server
:
server
:
port
:
8
888
port
:
8
777
spring
:
spring
:
# datasource:
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://121.22.111.253/covidnews?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
# username: root
# password: 1qaz@WSX
# hikari:
# minimum-idle: 5
# # 连接池最大连接数,默认是10
# maximum-pool-size: 20
# # 空闲连接存活最大时间,默认600000(10分钟)
# idle-timeout: 180000
# # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
# max-lifetime: 1800000
# # 数据库连接超时时间,默认30秒,即30000
# connection-timeout: 30000
datasource
:
datasource
:
druid
:
druid
:
url
:
jdbc:mysql://121.22.111.253/peking?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&autoReconnect=true&useSSL=false
url
:
jdbc:mysql://121.22.111.253/peking?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&autoReconnect=true&useSSL=false
...
...
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