Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
windows
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
zhanhai
windows
Commits
4a45ed6b
Commit
4a45ed6b
authored
Sep 15, 2023
by
liuzicheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化项目
parent
2e03888a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
CommandProxy.java
...in/java/com/jqtx/windows/common/factory/CommandProxy.java
+2
-2
RouterConfig.java
src/main/java/com/jqtx/windows/web/config/RouterConfig.java
+7
-1
No files found.
src/main/java/com/jqtx/windows/common/factory/CommandProxy.java
View file @
4a45ed6b
...
...
@@ -39,9 +39,9 @@ public class CommandProxy {
ChannelConfig
channelConfig
=
new
ChannelConfig
();
channelConfig
.
setAppId
(
appId
);
this
.
setLocalContext
(
requestBody
,
channelConfig
);
log
.
info
(
"[浙农请求request:处理
command
:{}------------>{}]"
,
command
.
getClass
().
getSimpleName
(),
decodeBody
);
log
.
info
(
"[浙农请求request:处理:{}------------>{}]"
,
command
.
getClass
().
getSimpleName
(),
decodeBody
);
JsonResult
result
=
command
.
doAction
();
log
.
info
(
"[浙农请求response:处理
command
:{}=============>{}]"
,
command
.
getClass
().
getSimpleName
(),
JSON
.
toJSONString
(
result
));
log
.
info
(
"[浙农请求response:处理:{}=============>{}]"
,
command
.
getClass
().
getSimpleName
(),
JSON
.
toJSONString
(
result
));
return
result
;
}
...
...
src/main/java/com/jqtx/windows/web/config/RouterConfig.java
View file @
4a45ed6b
package
com
.
jqtx
.
windows
.
web
.
config
;
import
com.jqtx.windows.command.CreditSubmitCommand
;
import
com.jqtx.windows.common.factory.AbstractCommand
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.stereotype.Component
;
...
...
@@ -11,6 +13,10 @@ import java.util.HashMap;
@Slf4j
public
class
RouterConfig
implements
CommandLineRunner
{
@Autowired
private
CreditSubmitCommand
creditSubmitCommand
;
private
static
HashMap
<
String
,
AbstractCommand
>
commandHashMap
=
new
HashMap
<>();
public
static
AbstractCommand
getCommand
(
String
method
)
{
...
...
@@ -22,6 +28,6 @@ public class RouterConfig implements CommandLineRunner {
@Override
public
void
run
(
String
...
args
)
throws
Exception
{
commandHashMap
.
put
(
"c
heck_user"
,
null
);
commandHashMap
.
put
(
"c
reditSubmit"
,
creditSubmitCommand
);
}
}
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