记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
f95fa375
Commit
f95fa375
authored
Mar 23, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit return area.json
parent
4cc807de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
SmileUserController.java
...in/web/controller/zhengzai/smile/SmileUserController.java
+6
-3
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/smile/SmileUserController.java
View file @
f95fa375
...
@@ -12,6 +12,7 @@ import io.swagger.annotations.Api;
...
@@ -12,6 +12,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.ResourceUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.io.File
;
import
java.io.File
;
...
@@ -108,10 +109,12 @@ public class SmileUserController extends BaseController {
...
@@ -108,10 +109,12 @@ public class SmileUserController extends BaseController {
}
}
@RequestMapping
(
"getAreaJson"
)
@RequestMapping
(
"getAreaJson"
)
public
String
getAreaJson
(){
@ApiOperation
(
"省市区json"
)
@ResponseBody
public
AjaxResult
getAreaJson
(){
String
jsonStr
=
""
;
String
jsonStr
=
""
;
try
{
try
{
File
jsonFile
=
new
File
(
"classPath:
"
);
File
jsonFile
=
ResourceUtils
.
getFile
(
"classpath:static/area.json
"
);
Reader
reader
=
new
InputStreamReader
(
new
FileInputStream
(
jsonFile
),
"utf-8"
);
Reader
reader
=
new
InputStreamReader
(
new
FileInputStream
(
jsonFile
),
"utf-8"
);
int
ch
=
0
;
int
ch
=
0
;
StringBuffer
sb
=
new
StringBuffer
();
StringBuffer
sb
=
new
StringBuffer
();
...
@@ -120,7 +123,7 @@ public class SmileUserController extends BaseController {
...
@@ -120,7 +123,7 @@ public class SmileUserController extends BaseController {
}
}
reader
.
close
();
reader
.
close
();
jsonStr
=
sb
.
toString
();
jsonStr
=
sb
.
toString
();
return
jsonStr
;
return
AjaxResult
.
success
(
jsonStr
)
;
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
ex
.
printStackTrace
();
return
null
;
return
null
;
...
...
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