commit
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.hutool.http.HttpUtil;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.budwk.app.base.constant.RedisConstant;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nutz.integration.jedis.RedisService;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
@@ -23,18 +24,17 @@ import java.util.Map;
|
||||
* @注释 :短信token工具类
|
||||
*/
|
||||
@Slf4j
|
||||
@IocBean
|
||||
public class SmsTokenUtil {
|
||||
|
||||
@Inject
|
||||
private RedisService redisService;
|
||||
|
||||
private static final SmsTokenUtil instance = new SmsTokenUtil();
|
||||
private SmsTokenUtil () {}
|
||||
public static SmsTokenUtil getInstance () {
|
||||
return instance;
|
||||
}
|
||||
public static SmsTokenUtil getInstance() {
|
||||
return Mvcs.getIoc().get(SmsTokenUtil.class);
|
||||
}
|
||||
|
||||
private static final String TOKEN_URL = "https://poa.ncu.edu.cn/oauth2/token";
|
||||
private static final String TOKEN_URL = "https://poa.ncu.edu.cn/oauth2/token";
|
||||
private static final String CLINT_ID = "dP7SXC1MoYAJHPh6k8Cgsda8tGY=";
|
||||
private static final String CLINT_SECRET = "PFAwVcXOsVFzP3Jwb4RyO5V97o8j8zNTQ8QSTre8oIc=";
|
||||
private static final String SCOPE = "messagecenter:v1:sendMessage";
|
||||
|
||||
Reference in New Issue
Block a user