Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
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
hewei
wecloud_im_server
Commits
0fd82cdf
Commit
0fd82cdf
authored
Apr 29, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志调整
parent
07eff3a4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
core/src/main/java/com/wecloud/dispatch/general/impl/GeneralMethodArgumentResolver.java
+0
-2
core/src/main/java/com/wecloud/im/param/add/ImConversationAttrUpdate.java
+1
-3
core/src/main/java/com/wecloud/utils/JsonUtils.java
+1
-2
No files found.
core/src/main/java/com/wecloud/dispatch/general/impl/GeneralMethodArgumentResolver.java
View file @
0fd82cdf
...
...
@@ -42,7 +42,6 @@ public class GeneralMethodArgumentResolver implements MethodArgumentResolver {
RequestBody
requestBodyDefine
=
parameter
.
getParameterAnnotation
(
RequestBody
.
class
);
if
(
requestBodyDefine
!=
null
)
{
Class
<?>
clazz
=
parameter
.
getParameterType
();
System
.
out
.
println
(
"clazz"
+
clazz
);
object
=
JsonUtils
.
beanCopyDeep
(
request
.
getData
(),
clazz
);
return
object
;
}
...
...
@@ -57,7 +56,6 @@ public class GeneralMethodArgumentResolver implements MethodArgumentResolver {
}
else
if
(
ArgumentBox
.
class
.
isAssignableFrom
(
clazz
))
{
object
=
argumentBox
;
}
else
{
System
.
out
.
println
(
"clazz"
+
clazz
);
object
=
JsonUtils
.
beanCopyDeep
(
value
,
clazz
);
}
if
(
object
==
null
)
{
...
...
core/src/main/java/com/wecloud/im/param/add/ImConversationAttrUpdate.java
View file @
0fd82cdf
package
com
.
wecloud
.
im
.
param
.
add
;
import
com.wecloud.dispatch.common.BaseRequest
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -8,7 +7,6 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.HashMap
;
/**
...
...
@@ -21,7 +19,7 @@ import java.util.HashMap;
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ImConversationAttrUpdate"
)
public
class
ImConversationAttrUpdate
extends
Base
Request
implements
Serializable
{
public
class
ImConversationAttrUpdate
extends
Base
Entity
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"json格式,自定义属性,供开发者扩展使用。"
)
...
...
core/src/main/java/com/wecloud/utils/JsonUtils.java
View file @
0fd82cdf
...
...
@@ -9,7 +9,6 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.cglib.beans.BeanMap
;
import
java.io.IOException
;
import
java.lang.reflect.Field
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
@@ -42,7 +41,6 @@ public class JsonUtils {
return
null
;
}
try
{
log
.
warn
(
"解析json字符串失败,原字符串: {} class {}"
,
strJsonBody
,
c
);
return
OBJECT_MAPPER
.
readValue
(
strJsonBody
,
c
);
}
catch
(
IOException
e
)
{
log
.
warn
(
"解析json字符串失败,原字符串: {} class {}"
,
strJsonBody
,
c
,
e
);
...
...
@@ -189,6 +187,7 @@ public class JsonUtils {
}
}
/**
* 判断字符也许是JSON
*
...
...
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