记得上下班打卡 | 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
0dc1e342
Commit
0dc1e342
authored
Dec 10, 2021
by
Administrator
🎨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pre' into 'master'
修改 imgurl没入库的问题 See merge request
!132
parents
02fb58ef
c3e3dad6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
SweetWechatMaoDengController.java
...ervice/sweet/controller/SweetWechatMaoDengController.java
+2
-3
MaoDengImageHandler.java
.../liquidnet/service/sweet/handler/MaoDengImageHandler.java
+3
-3
SweetWechatMaoDengServiceImpl.java
...ice/sweet/service/impl/SweetWechatMaoDengServiceImpl.java
+5
-2
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetWechatMaoDengController.java
View file @
0dc1e342
...
@@ -58,9 +58,8 @@ public class SweetWechatMaoDengController {
...
@@ -58,9 +58,8 @@ public class SweetWechatMaoDengController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"imgUrl"
,
value
=
"imgUrl"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"imgUrl"
,
value
=
"imgUrl"
),
})
})
public
ResponseDto
addBuilderImg
(
@RequestParam
(
value
=
"userId"
,
required
=
false
)
String
userId
,
public
ResponseDto
addBuilderImg
(
@RequestParam
(
value
=
"userId"
,
required
=
false
)
String
userId
,
@RequestParam
(
value
=
"imgUrl"
,
required
=
false
)
String
imgUrl
,
@RequestParam
(
value
=
"imgUrl"
,
required
=
false
)
String
imgUrl
)
{
@RequestParam
(
value
=
"maoId"
,
required
=
false
)
String
maoId
)
{
return
sweetWechatMaoDengService
.
addBuilderImg
(
userId
,
imgUrl
);
return
sweetWechatMaoDengService
.
addBuilderImg
(
userId
,
imgUrl
,
maoId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/handler/MaoDengImageHandler.java
View file @
0dc1e342
...
@@ -90,7 +90,7 @@ public class MaoDengImageHandler implements WxMpMessageHandler {
...
@@ -90,7 +90,7 @@ public class MaoDengImageHandler implements WxMpMessageHandler {
sweetMaoDengVo
.
setTextMsg
(
textMsg
);
sweetMaoDengVo
.
setTextMsg
(
textMsg
);
}
}
String
maoId
=
IDGenerator
.
nextSnowId
(
);
sweetMaoDengVo
.
setMaoId
(
IDGenerator
.
nextSnowId
()
);
redisUtils
.
setSweetMaoDeng
(
sweetMaoDengVo
);
redisUtils
.
setSweetMaoDeng
(
sweetMaoDengVo
);
if
(
StringUtil
.
isNotEmpty
(
textMsg
)
&&
StringUtil
.
isNotEmpty
(
picUrl
))
{
if
(
StringUtil
.
isNotEmpty
(
textMsg
)
&&
StringUtil
.
isNotEmpty
(
picUrl
))
{
...
@@ -98,7 +98,7 @@ public class MaoDengImageHandler implements WxMpMessageHandler {
...
@@ -98,7 +98,7 @@ public class MaoDengImageHandler implements WxMpMessageHandler {
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
sqls
.
add
(
SqlMapping
.
get
(
"sweet_wechat_maodeng.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"sweet_wechat_maodeng.insert"
));
sqlsDataA
.
add
(
new
Object
[]{
maoId
,
fromUser
,
textMsg
,
picUrl
,
""
,
LocalDateTime
.
now
()});
sqlsDataA
.
add
(
new
Object
[]{
sweetMaoDengVo
.
getMaoId
()
,
fromUser
,
textMsg
,
picUrl
,
""
,
LocalDateTime
.
now
()});
queueUtils
.
sendMsgByRedis
(
MQConst
.
SweetQueue
.
SWEET_WECHAT_MAODENG_TEXT_INSERT
.
getKey
(),
SqlMapping
.
gets
(
sqls
,
sqlsDataA
));
queueUtils
.
sendMsgByRedis
(
MQConst
.
SweetQueue
.
SWEET_WECHAT_MAODENG_TEXT_INSERT
.
getKey
(),
SqlMapping
.
gets
(
sqls
,
sqlsDataA
));
}
}
...
@@ -108,7 +108,7 @@ public class MaoDengImageHandler implements WxMpMessageHandler {
...
@@ -108,7 +108,7 @@ public class MaoDengImageHandler implements WxMpMessageHandler {
// 发送活动小程序卡片
// 发送活动小程序卡片
WxMpKefuMessage
message
=
WxMpKefuMessage
.
MINIPROGRAMPAGE
()
WxMpKefuMessage
message
=
WxMpKefuMessage
.
MINIPROGRAMPAGE
()
.
appId
(
maConfigure
.
getWxMaAppid
(
4
))
.
appId
(
maConfigure
.
getWxMaAppid
(
4
))
.
pagePath
(
"pages/webview?query=catActivity
&maoId="
+
maoId
)
//小程序路径
.
pagePath
(
"pages/webview?query=catActivity
"
)
//小程序路径
// .thumbMediaId("ov08q51In7bXX6tXv7Few-ud2-J-hyXnDC5NCNSfc_4") // 正在
// .thumbMediaId("ov08q51In7bXX6tXv7Few-ud2-J-hyXnDC5NCNSfc_4") // 正在
// .thumbMediaId("ttUDFdcsOTnGFPBt5xp-vaYe_hS9Jae5C_YUboXmb4c") //test
// .thumbMediaId("ttUDFdcsOTnGFPBt5xp-vaYe_hS9Jae5C_YUboXmb4c") //test
.
thumbMediaId
(
"OFjnPjluDGoHH1KOAdxQ_iMyWpBe_c48V40LlN6VmAQ"
)
//图片地址
.
thumbMediaId
(
"OFjnPjluDGoHH1KOAdxQ_iMyWpBe_c48V40LlN6VmAQ"
)
//图片地址
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetWechatMaoDengServiceImpl.java
View file @
0dc1e342
...
@@ -30,7 +30,7 @@ public class SweetWechatMaoDengServiceImpl {
...
@@ -30,7 +30,7 @@ public class SweetWechatMaoDengServiceImpl {
@Autowired
@Autowired
WechatMaConfigure
maConfigure
;
WechatMaConfigure
maConfigure
;
public
ResponseDto
addBuilderImg
(
String
userId
,
String
imgUrl
,
String
maoId
)
{
public
ResponseDto
addBuilderImg
(
String
userId
,
String
imgUrl
)
{
LocalDateTime
localDateTime
=
LocalDateTime
.
now
();
//生成创建时间
LocalDateTime
localDateTime
=
LocalDateTime
.
now
();
//生成创建时间
try
{
try
{
SweetWechatUsersVo
wechatUsers
=
redisUtils
.
getSweetWechatUsersOfUnionId
(
userId
,
2
);
SweetWechatUsersVo
wechatUsers
=
redisUtils
.
getSweetWechatUsersOfUnionId
(
userId
,
2
);
...
@@ -45,12 +45,15 @@ public class SweetWechatMaoDengServiceImpl {
...
@@ -45,12 +45,15 @@ public class SweetWechatMaoDengServiceImpl {
String
picUrl
=
sweetMaoDeng
.
getPicUrl
();
String
picUrl
=
sweetMaoDeng
.
getPicUrl
();
sweetMaoDeng
.
setCreatedAt
(
localDateTime
);
sweetMaoDeng
.
setCreatedAt
(
localDateTime
);
redisUtils
.
setSweetMaoDeng
(
sweetMaoDeng
);
redisUtils
.
setSweetMaoDeng
(
sweetMaoDeng
);
if
(
sweetMaoDeng
.
getMaoId
()
==
null
)
{
sweetMaoDeng
.
setMaoId
(
"0"
);
}
if
(
StringUtil
.
isNotEmpty
(
textMsg
)
&&
StringUtil
.
isNotEmpty
(
picUrl
))
{
if
(
StringUtil
.
isNotEmpty
(
textMsg
)
&&
StringUtil
.
isNotEmpty
(
picUrl
))
{
//redis队列入库
//redis队列入库
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
sqls
.
add
(
SqlMapping
.
get
(
"sweet_wechat_maodeng.img.update"
));
sqls
.
add
(
SqlMapping
.
get
(
"sweet_wechat_maodeng.img.update"
));
sqlsDataA
.
add
(
new
Object
[]{
imgUrl
,
userId
,
maoId
});
sqlsDataA
.
add
(
new
Object
[]{
imgUrl
,
userId
,
sweetMaoDeng
.
getMaoId
()
});
queueUtils
.
sendMsgByRedis
(
MQConst
.
SweetQueue
.
SWEET_WECHAT_MAODENG_TEXT_INSERT
.
getKey
(),
SqlMapping
.
gets
(
sqls
,
sqlsDataA
));
queueUtils
.
sendMsgByRedis
(
MQConst
.
SweetQueue
.
SWEET_WECHAT_MAODENG_TEXT_INSERT
.
getKey
(),
SqlMapping
.
gets
(
sqls
,
sqlsDataA
));
return
ResponseDto
.
success
(
"请求成功"
);
return
ResponseDto
.
success
(
"请求成功"
);
}
}
...
...
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