@Service public class WxgzhNoticeService extends Object
构造器和说明 |
---|
WxgzhNoticeService() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkSignature(String signature,
String timestamp,
String nonce) |
String |
getCodeTicket(String expireSecond,
int sceneInt)
获取带参二维码ticket,参数为整型
|
String |
getCodeTicket(String expireSecond,
String sceneStr)
获取带参二维码ticket,参数为字符串值
|
String |
getSuccessUrl() |
String |
send(long userId,
String loginName,
String message) |
String |
send(Long userId,
String title,
String content)
发送公众号消息
|
String |
sendLoginMsg(String openId,
String loginName,
String message)
发送登录通知
|
void |
sendMsg(String openId,
String templateId,
Map<String,String> dataMap)
发送公众号消息
|
public String send(Long userId, String title, String content) throws Exception
userId
- title
- content
- Exception
public void sendMsg(String openId, String templateId, Map<String,String> dataMap) throws Exception
openId
- openIdtemplateId
- 模板Id asocipnCgV54UZZ4L4CUnELvJs3nIDf65KkNxJmWvLQdataMap
- 数据MapException
- Exceptionpublic String sendLoginMsg(String openId, String loginName, String message) throws SQLException, BusiException
openId
- 第三方IdloginName
- 账户名message
- 消息内容Exception
SQLException
BusiException
public String send(long userId, String loginName, String message) throws SQLException, BusiException
public String getCodeTicket(String expireSecond, String sceneStr) throws BusiException
expireSecond
- 该二维码有效时间,以秒为单位。sceneStr
- 字符串类型,长度限制为1到64BusiException
public String getCodeTicket(String expireSecond, int sceneInt) throws SQLException, BusiException
expireSecond
- 该二维码有效时间,以秒为单位。sceneInt
- 为32位非0整型,永久二维码时最大值为100000SQLException
BusiException
public String getSuccessUrl() throws SQLException, BusiException
public boolean checkSignature(String signature, String timestamp, String nonce) throws BusiException
BusiException
Copyright © 2025. All rights reserved.