mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 17:09:36 +08:00
修改短信内容
This commit is contained in:
parent
a5c15e82e4
commit
70b6ba8ace
@ -11,6 +11,7 @@ import com.ics.common.utils.DateUtils;
|
|||||||
import com.ics.common.utils.StringUtils;
|
import com.ics.common.utils.StringUtils;
|
||||||
import com.ics.controller.mobile.SmallWxOkHttp;
|
import com.ics.controller.mobile.SmallWxOkHttp;
|
||||||
import com.ics.service.RepairRemindPushService;
|
import com.ics.service.RepairRemindPushService;
|
||||||
|
import com.ics.util.WxSmallUtil;
|
||||||
import okhttp3.Call;
|
import okhttp3.Call;
|
||||||
import okhttp3.MediaType;
|
import okhttp3.MediaType;
|
||||||
import okhttp3.OkHttpClient;
|
import okhttp3.OkHttpClient;
|
||||||
@ -50,6 +51,9 @@ public class RepairRemindPushServiceImpl implements RepairRemindPushService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private SMSUtil smsSender;
|
private SMSUtil smsSender;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private WxSmallUtil wxSmallUtil;
|
||||||
|
|
||||||
@Value("${webchatGZH.templateRP}")
|
@Value("${webchatGZH.templateRP}")
|
||||||
private String templateRP;
|
private String templateRP;
|
||||||
|
|
||||||
@ -102,7 +106,7 @@ public class RepairRemindPushServiceImpl implements RepairRemindPushService {
|
|||||||
String content = repairRemind.getContent();
|
String content = repairRemind.getContent();
|
||||||
//发送短信--限会议,限普通用户 --会议室预约角色(1.普通用户, 3.会议服务人员 ,5.会议管理员)
|
//发送短信--限会议,限普通用户 --会议室预约角色(1.普通用户, 3.会议服务人员 ,5.会议管理员)
|
||||||
if (StringUtils.isBlank(repairRemind.getExt2()) && repairRemind.getTypeId() == 1 && customerStaff.getRoomRole() == 1) {
|
if (StringUtils.isBlank(repairRemind.getExt2()) && repairRemind.getTypeId() == 1 && customerStaff.getRoomRole() == 1) {
|
||||||
JSONObject smsResult = smsSender.sendSms(content, customerStaff.getMobile());
|
JSONObject smsResult = smsSender.sendSms(content + " " + wxSmallUtil.getLink(), 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;//瞎写,先替代
|
// int code = 5;//瞎写,先替代
|
||||||
|
Loading…
x
Reference in New Issue
Block a user