Commit 4ff02a6d authored by czh030's avatar czh030

修改短信功能

parent d1c18e04
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment