Commit 91352be3 by fanjiaxin

推客短信发送调试

parent a7fa51fb
Pipeline #75550 passed with stages
in 1 minute 8 seconds
package com.netease.yanxuan.wx.store.sharer.biz.service.impl; package com.netease.yanxuan.wx.store.sharer.biz.service.impl;
import com.netease.yanxuan.wx.store.sharer.biz.core.LoginUserContextHolder;
import com.netease.yanxuan.wx.store.sharer.biz.meta.enums.SmsScenesEnum; import com.netease.yanxuan.wx.store.sharer.biz.meta.enums.SmsScenesEnum;
import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.SmsCodeBO; import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.SmsCodeBO;
import com.netease.yanxuan.wx.store.sharer.biz.service.ISmsService; import com.netease.yanxuan.wx.store.sharer.biz.service.ISmsService;
...@@ -19,7 +20,6 @@ import org.springframework.stereotype.Service; ...@@ -19,7 +20,6 @@ import org.springframework.stereotype.Service;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.util.UUID;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
...@@ -78,7 +78,7 @@ public class SmsServiceImpl implements ISmsService { ...@@ -78,7 +78,7 @@ public class SmsServiceImpl implements ISmsService {
// 生成6位随机数字 // 生成6位随机数字
String code = RandomUtils.randomNumber(6); String code = RandomUtils.randomNumber(6);
// uas发送验证码 // uas发送验证码
boolean success = iUasClient.sendSmsCode(UUID.randomUUID().toString(), boolean success = iUasClient.sendSmsCode(LoginUserContextHolder.get().getOpenId(),
mobilePhone, code, scenes, scenesConfigBO); mobilePhone, code, scenes, scenesConfigBO);
if (!success) { if (!success) {
return false; return false;
......
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