Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
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
quanku
qk_backend
Commits
fac55550
Commit
fac55550
authored
Mar 14, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板消息2
parent
962ed0d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SendMsgServiceImpl.java
.../com/wwdz/ch/wx/impl/distribution/SendMsgServiceImpl.java
+11
-11
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoSendMsgJob.java
...-api/src/main/java/com/wwdz/ch/wx/job/AutoSendMsgJob.java
+1
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SendMsgServiceImpl.java
View file @
fac55550
...
...
@@ -197,7 +197,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送拍卖出价被超越通知模板消息成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"发送拍卖出价被超越通知模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
@@ -250,8 +250,8 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送竞拍成功模板消息 成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
}
logger
.
error
(
"发送竞拍成功模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
@@ -301,7 +301,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送中拍通知付款模板消息 成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"发送中拍通知付款模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
@@ -315,7 +315,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"touser"
,
openId
);
map
.
put
(
"template_id"
,
"VVpkASCM6OgdbyERsy--h
jPAI7fWuNJwtDDMR5EqVnM
"
);
map
.
put
(
"template_id"
,
"VVpkASCM6OgdbyERsy--h
ufo5PF1RvK2LfxgIsbGrR4
"
);
Map
<
String
,
Object
>
miniprogramMap
=
new
HashMap
<>();
miniprogramMap
.
put
(
"appid"
,
APPLET_APPID
);
StringBuffer
stringBuffer
=
new
StringBuffer
(
AUCTION_MSG_URL
);
...
...
@@ -331,10 +331,10 @@ public class SendMsgServiceImpl implements SendMsgService {
put
(
"value"
,
auctionOfferNoticeMsg
.
getItemName
().
substring
(
0
,
20
));
}});
paramMap
.
put
(
"amount2"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
());
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
String
content
=
"预计获得利润 "
+
auctionOfferNoticeMsg
.
getProfit
()
+
"元"
;
paramMap
.
put
(
"t
ime4
"
,
new
HashMap
()
{{
paramMap
.
put
(
"t
hing3
"
,
new
HashMap
()
{{
put
(
"value"
,
content
);
}});
map
.
put
(
"data"
,
paramMap
);
...
...
@@ -352,7 +352,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送通知分销商竞拍成功模板消息 成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"发送通知分销商竞拍成功模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
@@ -403,7 +403,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送通竞拍即将结束模板消息 成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"发送通竞拍即将结束模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
@@ -453,7 +453,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送竞拍结束模板消息 成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"发送竞拍结束模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
@@ -501,7 +501,7 @@ public class SendMsgServiceImpl implements SendMsgService {
logger
.
info
(
"=============发送出价通知对应分销商模板消息 成功 ==========="
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
error
(
"发送出价通知对应分销商模板消息 error :{}"
,
e
);
}
return
Result
.
failed
();
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoSendMsgJob.java
View file @
fac55550
...
...
@@ -95,6 +95,7 @@ public class AutoSendMsgJob {
try
{
//查询一小时内拍卖截拍的商品,通知参与过出价的用户即将截拍
List
<
AuctionConfig
>
auctionConfigList
=
auctionConfigDao
.
findEndList
();
logger
.
info
(
">>>>>> 一小时内即将截拍的商品数量 :{} <<<<<<<"
,
auctionConfigList
.
size
());
auctionConfigList
.
forEach
(
auctionConfig
->
{
long
itemId
=
auctionConfig
.
getItemId
();
//查询该商品所有出价记录
...
...
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