Merge branch 'feature/admin' into preview
commit
ab059c7dde
|
@ -10,6 +10,7 @@ import com.rabbitmq.client.Channel;
|
|||
import org.springframework.amqp.core.Message;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -30,6 +31,9 @@ import java.util.concurrent.TimeUnit;
|
|||
@Component
|
||||
public class CodeConsumer {
|
||||
|
||||
@Value("${mcwl.templateCode}")
|
||||
private String templateCode;
|
||||
|
||||
@Autowired
|
||||
private RedisCache redisCache;
|
||||
|
||||
|
@ -54,7 +58,7 @@ public class CodeConsumer {
|
|||
// 构建 sendDataMap
|
||||
Map<String, String> sendDataMap = new HashMap<>();
|
||||
sendDataMap.put("code", phoneLoginBody.getCode());
|
||||
String s1 = TelSmsUtils.sendSms(phoneLoginBody.getPhone(), "SMS_478520014", sendDataMap);
|
||||
String s1 = TelSmsUtils.sendSms(phoneLoginBody.getPhone(), templateCode, sendDataMap);
|
||||
|
||||
|
||||
//手动确认
|
||||
|
|
|
@ -174,3 +174,5 @@ mcwl:
|
|||
user:
|
||||
avatar: https://ybl2112.oss-cn-beijing.aliyuncs.com/2025/MARCH/10/7/53/3f5cc1d7-b062-4a22-9f7e-d442bc6dcf42.png
|
||||
backgroundImg: https://ybl2112.oss-cn-beijing.aliyuncs.com/2025/MARCH/10/8/2/c8387681-8138-4a29-a1c9-4a143da34c5a.png
|
||||
#发送短信模板
|
||||
templateCode: SMS_485410248
|
||||
|
|
|
@ -172,3 +172,5 @@ mcwl:
|
|||
user:
|
||||
avatar: https://ybl2112.oss-cn-beijing.aliyuncs.com/2025/MARCH/10/7/53/3f5cc1d7-b062-4a22-9f7e-d442bc6dcf42.png
|
||||
backgroundImg: https://ybl2112.oss-cn-beijing.aliyuncs.com/2025/MARCH/10/8/2/c8387681-8138-4a29-a1c9-4a143da34c5a.png
|
||||
#发送短信模板
|
||||
templateCode: SMS_485360194
|
||||
|
|
|
@ -18,8 +18,8 @@ public class TelSmsUtils {
|
|||
/**
|
||||
* 阿里云主账号AccessKey,accessKeySecret拥有所有API的访问权限
|
||||
*/
|
||||
private static String accessKeyId = "LTAI5tSHZZ8wHJRP8X4r9TXT";
|
||||
private static String accessKeySecret = "F82IVNx0IGJ3AnP6gSIfcyql1HCXIH";
|
||||
private static String accessKeyId = "LTAI5tJY7ZgftP6g2Vv66Hgy";
|
||||
private static String accessKeySecret = "Hx3sbJa8GJzRCFjArqEgk2965Gayrf";
|
||||
|
||||
/**
|
||||
* 短信访问域名
|
||||
|
|
Loading…
Reference in New Issue