parent
d742d4b3cf
commit
857c4517a8
@ -0,0 +1,26 @@
|
||||
package au.com.royalpay.payment.manage.support.sms;
|
||||
|
||||
import com.github.qcloudsms.SmsSingleSender;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author kira
|
||||
* @date 2018/8/1
|
||||
*/
|
||||
@Service
|
||||
public class SmsSender {
|
||||
@Value("${royalpay.sms.appid:1400094878}")
|
||||
private static int appId;
|
||||
@Value("${royalpay.sms.appkey:43390d81e20c5191c278fbf4cd275be2}")
|
||||
private static String appKey;
|
||||
|
||||
private static class SmsSenderIner{
|
||||
private static SmsSingleSender sender = new SmsSingleSender(appId, appKey);
|
||||
}
|
||||
|
||||
public static SmsSingleSender getSender(){
|
||||
return SmsSenderIner.sender;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue