Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
6dab6629
Commit
6dab6629
authored
Jun 08, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加站点授权
parent
978704ef
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
505 additions
and
113 deletions
+505
-113
base-manager/src/main/java/com/mortals/xhx/module/sms/model/SmsSetEntity.java
...n/java/com/mortals/xhx/module/sms/model/SmsSetEntity.java
+501
-111
portal-manager/src/main/java/com/mortals/xhx/base/system/upload/web/UploadController.java
.../mortals/xhx/base/system/upload/web/UploadController.java
+4
-2
No files found.
base-manager/src/main/java/com/mortals/xhx/module/sms/model/SmsSetEntity.java
View file @
6dab6629
This diff is collapsed.
Click to expand it.
portal-manager/src/main/java/com/mortals/xhx/base/system/upload/web/UploadController.java
View file @
6dab6629
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseController
;
import
com.mortals.xhx.base.system.upload.service.UploadService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -22,6 +23,7 @@ import java.util.Map;
*/
@RestController
@RequestMapping
(
"file"
)
@Slf4j
public
class
UploadController
extends
BaseController
{
@Resource
...
...
@@ -37,7 +39,6 @@ public class UploadController extends BaseController {
model
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
jsonStr
=
JSONObject
.
toJSONString
(
model
);
}
catch
(
AppException
e
)
{
log
.
debug
(
e
);
model
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
model
.
put
(
KEY_RESULT_MSG
,
e
.
getMessage
());
jsonStr
=
JSONObject
.
toJSONString
(
model
);
...
...
@@ -62,7 +63,7 @@ public class UploadController extends BaseController {
model
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
jsonStr
=
JSONObject
.
toJSONString
(
model
);
}
catch
(
AppException
e
)
{
log
.
debug
(
e
);
log
.
error
(
"上传异常"
,
e
);
model
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
model
.
put
(
KEY_RESULT_MSG
,
e
.
getMessage
());
jsonStr
=
JSONObject
.
toJSONString
(
model
);
...
...
@@ -72,6 +73,7 @@ public class UploadController extends BaseController {
model
.
put
(
KEY_RESULT_MSG
,
"文件上传失败"
);
jsonStr
=
JSONObject
.
toJSONString
(
model
);
}
log
.
info
(
"uploadResp==>{}"
,
jsonStr
);
return
jsonStr
;
}
...
...
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