微信消息推送
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1014 B

package com.ynxbd.push.helper;
import com.ynxbd.push.entity.response.ResponseResult;
import weixin.popular.bean.message.MessageSendResult;
/**
* @author 李进才
* @ClassName BusinessHelper
* @Description TODO
* @date 2023/05/11 11:54:00
*/
public class BusinessHelper {
/**
*
* @param organizeName
* @param patientId
* @param idCard
* @param doctorCode 有时候也会传deptCode验证
*/
public static MessageSendResult ParamsCheck(String organizeName, String patientId, String idCard, String doctorCode) {
MessageSendResult messageSendResult = new MessageSendResult();
if (patientId == null && idCard == null && doctorCode == null) {
return ResponseResult.PARAMETER_IS_NULL.toMessResult();
}
if (DesEncryptHelper.deCode(organizeName).equals("error:null")) {
return ResponseResult.ORGANIZE_IS_NULL.toMessResult();
}
messageSendResult.setErrcode("0");
return messageSendResult;
}
}