mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 20:39:37 +08:00
短信接口
This commit is contained in:
parent
5ee323ca71
commit
51d86428eb
@ -67,7 +67,6 @@ public class MeetingPrintController {
|
|||||||
if (!checkToken(accessToken)) return R.error().put("msg", "accessToken无效");
|
if (!checkToken(accessToken)) return R.error().put("msg", "accessToken无效");
|
||||||
MeetingRecordVo mrv = new MeetingRecordVo();
|
MeetingRecordVo mrv = new MeetingRecordVo();
|
||||||
mrv.setRole(5);
|
mrv.setRole(5);
|
||||||
//mrv.setStatus(7);
|
|
||||||
mrv.setExt1("all");
|
mrv.setExt1("all");
|
||||||
List<MeetingRecordVo> list = meetingReservationService.selectMeetingReservationList(mrv);
|
List<MeetingRecordVo> list = meetingReservationService.selectMeetingReservationList(mrv);
|
||||||
JSONArray datas = new JSONArray();
|
JSONArray datas = new JSONArray();
|
||||||
@ -82,14 +81,6 @@ public class MeetingPrintController {
|
|||||||
data.put("dept", meetingRecordVo.getUserOrg());
|
data.put("dept", meetingRecordVo.getUserOrg());
|
||||||
data.put("status", meetingRecordVo.getStatus());
|
data.put("status", meetingRecordVo.getStatus());
|
||||||
data.put("updateTime", meetingRecordVo.getUpdateTime() == null ? "" : DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, meetingRecordVo.getUpdateTime()));
|
data.put("updateTime", meetingRecordVo.getUpdateTime() == null ? "" : DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, meetingRecordVo.getUpdateTime()));
|
||||||
// String operate = meetingRecordVo.getOperate();
|
|
||||||
// JSONArray jsonArray = JSONArray.parseArray(operate);
|
|
||||||
// if (jsonArray != null && jsonArray.size() > 0) {
|
|
||||||
// JSONObject jsonObject = jsonArray.getJSONObject(jsonArray.size() - 1);
|
|
||||||
// data.put("updateTime", jsonObject.getString("time"));
|
|
||||||
// } else {
|
|
||||||
// data.put("updateTime", "");
|
|
||||||
// }
|
|
||||||
datas.add(data);
|
datas.add(data);
|
||||||
}
|
}
|
||||||
return R.ok().put("data", datas);
|
return R.ok().put("data", datas);
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.ics.admin.service.impl;
|
package com.ics.admin.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.ics.admin.domain.RepairRemind;
|
import com.ics.admin.domain.RepairRemind;
|
||||||
import com.ics.admin.mapper.RepairRemindMapper;
|
import com.ics.admin.mapper.RepairRemindMapper;
|
||||||
|
@ -27,11 +27,11 @@ public class SMSUtil {
|
|||||||
|
|
||||||
private RestTemplate restTemplate = new RestTemplate();
|
private RestTemplate restTemplate = new RestTemplate();
|
||||||
|
|
||||||
private final static String SIGN_NAME = "";
|
private final static String SIGN_NAME = "淮安市市级机关服务中心";
|
||||||
private final static String SEND_URL = "https://qxtapi.js118114.com:9003/SMSController/sendSms.do";
|
private final static String SEND_URL = "https://qxtapi.js118114.com:9003/SMSController/sendSms.do";
|
||||||
private final static String SPID = "";
|
private final static String SPID = "1000045377";
|
||||||
private final static String AUTH_CODE = "";
|
private final static String AUTH_CODE = "db69a6f2653f034d699d2cab266e2e6082cb7070";
|
||||||
private final static String AUTH_KEY = "";
|
private final static String AUTH_KEY = "fbb261ee327e46a09f204fcaeb4c356d";
|
||||||
|
|
||||||
public JSONObject sendSms(String message, String mobiles) {
|
public JSONObject sendSms(String message, String mobiles) {
|
||||||
// 准备请求参数
|
// 准备请求参数
|
||||||
@ -100,4 +100,5 @@ public class SMSUtil {
|
|||||||
}
|
}
|
||||||
return hexString.toString();
|
return hexString.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,7 @@ public class RepairRemindPushServiceImpl implements RepairRemindPushService {
|
|||||||
JSONObject smsResult = smsSender.sendSms(content, customerStaff.getMobile());
|
JSONObject smsResult = smsSender.sendSms(content, customerStaff.getMobile());
|
||||||
System.out.println("==========短信发送结果==========" + smsResult.toString());
|
System.out.println("==========短信发送结果==========" + smsResult.toString());
|
||||||
int code = smsResult.getInteger("code");
|
int code = smsResult.getInteger("code");
|
||||||
|
// int code = 5;//瞎写,先替代
|
||||||
if (code == 1) {
|
if (code == 1) {
|
||||||
sms3.add(repairRemind.getId());
|
sms3.add(repairRemind.getId());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user