短信推送功能
在订单创建时,会向供货商注册的手机号发送信息。
使用的是腾讯云功能
public class Notify2Supplier {
private static final String templateId = "1245713";
public static void sendByGroup(String[] phoneNumberSet, String hospitalName) {
try {
String[] _templateParamSet = {
hospitalName};
SmsTencent.send(templateId, phoneNumberSet, _templateParamSet);
} catch (Exception e) {
System.out.println(e.toString());
}