Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
Project
Project
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
4ff02a6d
Commit
4ff02a6d
authored
Sep 15, 2021
by
czh030
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改短信功能
parent
d1c18e04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
BuyerOrderServiceImpl.java
...y/lingxi/order/serviceimpl/web/BuyerOrderServiceImpl.java
+18
-18
No files found.
order-service/src/main/java/com/ssy/lingxi/order/serviceimpl/web/BuyerOrderServiceImpl.java
View file @
4ff02a6d
...
...
@@ -1217,26 +1217,26 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
//Step 4-4 : 订单完成后的操作
baseOrderService
.
operateAfterOrderAccomplished
(
order
);
MemberIdFeignVO
memberIdFeignVO
=
new
MemberIdFeignVO
();
memberIdFeignVO
.
setMemberId
(
order
.
getVendorMemberId
());
Wrapper
<
MemberResFeignVO
>
wrapper
=
memberUserInfoControllerFeign
.
getMemberId
(
memberIdFeignVO
);
SmsVO
smsVO
=
new
SmsVO
();
smsVO
.
setCode
(
SmsTemplateEnum
.
ReceiveOrder
.
getCode
());
String
phone
=
"+86"
+
wrapper
.
getData
().
getPhone
();
smsVO
.
setPhones
(
new
String
[]{
phone
});
String
vendorMemberName
=
order
.
getVendorMemberName
();
if
(
vendorMemberName
.
length
()
>
12
)
{
vendorMemberName
=
vendorMemberName
.
substring
(
0
,
12
);
}
smsVO
.
setTemplateParam
(
new
String
[]{
vendorMemberName
});
sendSmsFeign
.
sendSms
(
smsVO
);
if
(
"广西工程技术研究院有限公司"
.
equals
(
wrapper
.
getData
().
getName
())){
String
phoneTwo
=
"+8617526710079"
;
smsVO
.
setPhones
(
new
String
[]{
phoneTwo
});
if
(!
payVO
.
getPayChannel
().
equals
(
1
)
&&
!
payVO
.
getPayChannel
().
equals
(
2
)
||
!
payVO
.
getPayChannel
().
equals
(
3
))
{
MemberIdFeignVO
memberIdFeignVO
=
new
MemberIdFeignVO
();
memberIdFeignVO
.
setMemberId
(
order
.
getVendorMemberId
());
Wrapper
<
MemberResFeignVO
>
wrapper
=
memberUserInfoControllerFeign
.
getMemberId
(
memberIdFeignVO
);
SmsVO
smsVO
=
new
SmsVO
();
smsVO
.
setCode
(
SmsTemplateEnum
.
ReceiveOrder
.
getCode
());
String
phone
=
"+86"
+
wrapper
.
getData
().
getPhone
();
smsVO
.
setPhones
(
new
String
[]{
phone
});
String
vendorMemberName
=
order
.
getVendorMemberName
();
if
(
vendorMemberName
.
length
()
>
12
)
{
vendorMemberName
=
vendorMemberName
.
substring
(
0
,
12
);
}
smsVO
.
setTemplateParam
(
new
String
[]{
vendorMemberName
});
sendSmsFeign
.
sendSms
(
smsVO
);
if
(
"广西工程技术研究院有限公司"
.
equals
(
wrapper
.
getData
().
getName
())){
String
phoneTwo
=
"+8617526710079"
;
smsVO
.
setPhones
(
new
String
[]{
phoneTwo
});
sendSmsFeign
.
sendSms
(
smsVO
);
}
}
return
Wrapper
.
success
(
payResult
.
getData
().
getCodeUrl
());
}
...
...
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