Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
7f27e6fb
Commit
7f27e6fb
authored
Dec 04, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "增加小程序订阅消息跳转类型"
This reverts commit
1fbe9582
.
parent
1fbe9582
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
21 deletions
+13
-21
application-prod.yml
share-admin/src/main/resources/application-prod.yml
+1
-8
TemplateMessageVo.java
...c/main/java/share/system/domain/vo/TemplateMessageVo.java
+0
-3
WechatNewServiceImpl.java
.../java/share/system/service/impl/WechatNewServiceImpl.java
+12
-10
No files found.
share-admin/src/main/resources/application-prod.yml
View file @
7f27e6fb
...
@@ -22,14 +22,7 @@ wechat:
...
@@ -22,14 +22,7 @@ wechat:
signKey
:
ZEKu56XCezuESfNEdM4zVZEN3cz2PuHz
signKey
:
ZEKu56XCezuESfNEdM4zVZEN3cz2PuHz
certPath
:
/var/gxpt/wechat_ssl/apiclient_cert.p12
certPath
:
/var/gxpt/wechat_ssl/apiclient_cert.p12
token
:
coujio
token
:
coujio
wx
:
miniapp
:
configs
:
-
appid
:
wxdd170b8783edf7a0
secret
:
7339f117e85876a0dfe10ea1ed47340e
token
:
coujio
aesKey
:
zf8vTHbI0ZDPTkkCXHEuwh9EbtVtOn6n4vQjMb9OFrS
msgDataFormat
:
XML
# 开发环境配置
# 开发环境配置
server
:
server
:
# 服务器的HTTP端口,默认为8080
# 服务器的HTTP端口,默认为8080
...
...
share-system/src/main/java/share/system/domain/vo/TemplateMessageVo.java
View file @
7f27e6fb
...
@@ -25,9 +25,6 @@ public class TemplateMessageVo {
...
@@ -25,9 +25,6 @@ public class TemplateMessageVo {
@ApiModelProperty
(
value
=
"模板跳转链接(海外帐号没有跳转能力)"
)
@ApiModelProperty
(
value
=
"模板跳转链接(海外帐号没有跳转能力)"
)
private
String
page
;
private
String
page
;
@ApiModelProperty
(
value
=
"跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版"
)
private
String
miniprogram_state
;
@ApiModelProperty
(
value
=
"发送内容"
)
@ApiModelProperty
(
value
=
"发送内容"
)
private
HashMap
<
String
,
SendTemplateMessageItemVo
>
data
;
private
HashMap
<
String
,
SendTemplateMessageItemVo
>
data
;
}
}
share-system/src/main/java/share/system/service/impl/WechatNewServiceImpl.java
View file @
7f27e6fb
...
@@ -529,9 +529,8 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -529,9 +529,8 @@ public class WechatNewServiceImpl implements WechatNewService {
public
Boolean
sendMiniSubscribeMessage
(
SOrder
byOrderNo
,
MessageReminderEnum
messageReminderEnum
)
{
public
Boolean
sendMiniSubscribeMessage
(
SOrder
byOrderNo
,
MessageReminderEnum
messageReminderEnum
)
{
//发送模板消息 预约提醒到期
//发送模板消息 预约提醒到期
TemplateMessageVo
templateMessageVo
=
new
TemplateMessageVo
();
TemplateMessageVo
templateMessageVo
=
new
TemplateMessageVo
();
String
url
=
"
pages/orderResult
/"
+
byOrderNo
.
getOrderNo
();
String
url
=
"
https://www.coujio.com/front-api/order
/"
+
byOrderNo
.
getOrderNo
();
templateMessageVo
.
setPage
(
url
);
templateMessageVo
.
setPage
(
url
);
templateMessageVo
.
setMiniprogram_state
(
"trial"
);
HashMap
<
String
,
SendTemplateMessageItemVo
>
data
=
new
HashMap
<>();
HashMap
<
String
,
SendTemplateMessageItemVo
>
data
=
new
HashMap
<>();
SStore
sStore
=
storeService
.
getById
(
byOrderNo
.
getStoreId
());
SStore
sStore
=
storeService
.
getById
(
byOrderNo
.
getStoreId
());
SRoomVo
sRoomVo
=
roomService
.
selectSRoomById
(
byOrderNo
.
getRoomId
());
SRoomVo
sRoomVo
=
roomService
.
selectSRoomById
(
byOrderNo
.
getRoomId
());
...
@@ -544,11 +543,6 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -544,11 +543,6 @@ public class WechatNewServiceImpl implements WechatNewService {
SConsumerToken
tokenByUserId
=
sConsumerTokenService
.
getTokenByUserId
(
byOrderNo
.
getConsumerId
());
SConsumerToken
tokenByUserId
=
sConsumerTokenService
.
getTokenByUserId
(
byOrderNo
.
getConsumerId
());
String
date
=
preStartDateStr
+
"~"
+
preEndDateStr
;
String
date
=
preStartDateStr
+
"~"
+
preEndDateStr
;
templateMessageVo
.
setTouser
(
tokenByUserId
.
getToken
());
templateMessageVo
.
setTouser
(
tokenByUserId
.
getToken
());
//截取20个字符
String
address
=
sStore
.
getAddress
();
if
(
address
.
length
()
>
20
)
{
address
=
address
.
substring
(
0
,
20
);
}
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
RESERVER
))
{
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
RESERVER
))
{
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
RESERVER
.
getValue
());
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
RESERVER
.
getValue
());
//添加门店名称
//添加门店名称
...
@@ -558,7 +552,9 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -558,7 +552,9 @@ public class WechatNewServiceImpl implements WechatNewService {
//预约时间
//预约时间
data
.
put
(
"date3"
,
new
SendTemplateMessageItemVo
(
date
));
data
.
put
(
"date3"
,
new
SendTemplateMessageItemVo
(
date
));
//地址
//地址
data
.
put
(
"thing5"
,
new
SendTemplateMessageItemVo
(
address
));
String
address
=
sStore
.
getAddress
();
String
substring
=
address
.
substring
(
0
,
20
);
data
.
put
(
"thing5"
,
new
SendTemplateMessageItemVo
(
substring
));
}
else
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
START
))
{
}
else
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
START
))
{
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
START
.
getValue
());
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
START
.
getValue
());
//预约门店
//预约门店
...
@@ -568,7 +564,10 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -568,7 +564,10 @@ public class WechatNewServiceImpl implements WechatNewService {
//预约时间
//预约时间
data
.
put
(
"time8"
,
new
SendTemplateMessageItemVo
(
date
));
data
.
put
(
"time8"
,
new
SendTemplateMessageItemVo
(
date
));
//地址
//地址
data
.
put
(
"thing9"
,
new
SendTemplateMessageItemVo
(
address
));
//截取20个字符
String
address
=
sStore
.
getAddress
();
String
substring
=
address
.
substring
(
0
,
20
);
data
.
put
(
"thing9"
,
new
SendTemplateMessageItemVo
(
substring
));
//订单金额
//订单金额
data
.
put
(
"amount4"
,
new
SendTemplateMessageItemVo
(
String
.
valueOf
(
byOrderNo
.
getPackPrice
())));
data
.
put
(
"amount4"
,
new
SendTemplateMessageItemVo
(
String
.
valueOf
(
byOrderNo
.
getPackPrice
())));
}
else
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
END
))
{
}
else
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
END
))
{
...
@@ -580,7 +579,10 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -580,7 +579,10 @@ public class WechatNewServiceImpl implements WechatNewService {
//订单时间
//订单时间
data
.
put
(
"time7"
,
new
SendTemplateMessageItemVo
(
date
));
data
.
put
(
"time7"
,
new
SendTemplateMessageItemVo
(
date
));
//地址
//地址
data
.
put
(
"thing8"
,
new
SendTemplateMessageItemVo
(
address
));
//截取20个字符
String
address
=
sStore
.
getAddress
();
String
substring
=
address
.
substring
(
0
,
20
);
data
.
put
(
"thing8"
,
new
SendTemplateMessageItemVo
(
substring
));
}
}
templateMessageVo
.
setData
(
data
);
templateMessageVo
.
setData
(
data
);
return
sendMiniSubscribeMessage
(
templateMessageVo
);
return
sendMiniSubscribeMessage
(
templateMessageVo
);
...
...
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