接受不到消息

用户4613176
2025-01-02 09:53 27 1

```
public void sendSms(String phoneNumber, Integer tempId,Map<String,String> parma) {
System.out.println("调用了发消息!!");
SMSClient smsClient = new SMSClient(masterSecret, appKey);
SMSPayload payload = SMSPayload.newBuilder()
.setMobileNumber(phoneNumber) // 手机号码
.setTempId(tempId) // 短信模板ID,需要自己去申请
.setTempPara(parma)
.build();
try {
SendSMSResult res = smsClient.sendTemplateSMS(payload);
} catch (APIConnectionException e) {
e.printStackTrace();
} catch (APIRequestException e) {
e.printStackTrace();
}
}
17:45:54.451 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Succeed to get response OK - responseCode:200
17:45:54.451 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Response Content - {"msg_id":567587457208322}

1个回答

热门排序
  • 请按以下步骤进行处理: 你可以使用排查工具先排查一下(注意是排查工具,不是推送记录!!!):https://go48pg.yuque.com/docs/share/81d983ba-1e7c-4c92-8dc7-b82321e7a58 展示全部