duhuizhe
2024-04-17 c389984b5d3e5523e1b22de1fc045dc415261330
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.yqzx.common.constants;
 
/**
 * @Description: 短信模板
 * @Author: liujun
 * @Date: 2019-08-02 20:00
 **/
public class SmsTemplate {
 
    private static String SEND_MSG = "【邮惠商城】您的验证码是#code#。如非本人操作,请忽略本短信";
 
    /**
     * 获取短信内容
     *
     * @param code
     * @return
     */
    public static String getSmsMsg(String code) {
        String msg = SEND_MSG;
        return msg.replaceAll("#code#", code);
    }
}