Merge branch 'master' of gitee.com:super-shopkeeper/chaozhanggui into ys
Signed-off-by: liuyingfang <8517512+liuyingfang@user.noreply.gitee.com>
This commit is contained in:
@@ -229,6 +229,11 @@ public class GetuiPushUtil implements IPush {
|
|||||||
sendAndroidByAlias(alias, notificationTitle, msgContent, extrasParam);
|
sendAndroidByAlias(alias, notificationTitle, msgContent, extrasParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendAllPlatByAliasExt(List<String> alias, String notificationTitle, String msgContent, String extrasParam) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendIOSAll(String notificationTitle, String msgContent, String extrasParam) {
|
public void sendIOSAll(String notificationTitle, String msgContent, String extrasParam) {
|
||||||
init();
|
init();
|
||||||
|
|||||||
@@ -34,6 +34,16 @@ public interface IPush {
|
|||||||
*/
|
*/
|
||||||
void sendAllPlatByAlias(List<String> alias, String notificationTitle, String msgContent, String extrasParam);
|
void sendAllPlatByAlias(List<String> alias, String notificationTitle, String msgContent, String extrasParam);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 推送到全部,android & iOS
|
||||||
|
*
|
||||||
|
* @param alias id数组
|
||||||
|
* @param notificationTitle 推送通知标题
|
||||||
|
* @param msgContent 推送内容
|
||||||
|
* @param extrasParam 附加参数
|
||||||
|
*/
|
||||||
|
void sendAllPlatByAliasExt(List<String> alias, String notificationTitle, String msgContent, String extrasParam);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送到全部iphone
|
* 推送到全部iphone
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -96,6 +96,11 @@ public class JGPushUtil implements IPush {
|
|||||||
sendAndResultHandle(pushPayload);
|
sendAndResultHandle(pushPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendAllPlatByAliasExt(List<String> alias, String notificationTitle, String msgContent, String extrasParam) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendIOSAll(String notificationTitle, String msgContent, String extrasParam) {
|
public void sendIOSAll(String notificationTitle, String msgContent, String extrasParam) {
|
||||||
PushPayload pushPayload = getPayLoadBuilder(notificationTitle, msgContent, extrasParam)
|
PushPayload pushPayload = getPayLoadBuilder(notificationTitle, msgContent, extrasParam)
|
||||||
|
|||||||
@@ -119,6 +119,11 @@ public class MobPushUtil implements IPush {
|
|||||||
sendAndResultHandle(push);
|
sendAndResultHandle(push);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendAllPlatByAliasExt(List<String> alias, String notificationTitle, String msgContent, String extrasParam) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendIOSAll(String notificationTitle, String msgContent, String extrasParam) {
|
public void sendIOSAll(String notificationTitle, String msgContent, String extrasParam) {
|
||||||
PushNotify notify = generalPushNotify(notificationTitle, msgContent, extrasParam);
|
PushNotify notify = generalPushNotify(notificationTitle, msgContent, extrasParam);
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ public class MobV2PushUtil {
|
|||||||
|
|
||||||
ApiResult<Map<String, Map<String, String>>> apiResult = pushApi.pushBatchByAlias(pushBatchDTO);
|
ApiResult<Map<String, Map<String, String>>> apiResult = pushApi.pushBatchByAlias(pushBatchDTO);
|
||||||
|
|
||||||
|
log.info("[uni推送]PushResult result is {}", apiResult.getData());
|
||||||
|
|
||||||
if (apiResult.isSuccess()) {
|
if (apiResult.isSuccess()) {
|
||||||
// success
|
// success
|
||||||
System.out.println(apiResult.getData());
|
System.out.println(apiResult.getData());
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ parameter:
|
|||||||
APPID: wx212769170d2c6b2a
|
APPID: wx212769170d2c6b2a
|
||||||
# wxfffc7bff64c7a11e
|
# wxfffc7bff64c7a11e
|
||||||
#小程序付款APPID
|
#小程序付款APPID
|
||||||
APPLETS_APPID: wxfffc7bff64c7a11e
|
APPLETS_APPID: wxc2bb94c0ddda1032
|
||||||
APPSECRET: 4e00bbf3fc75a1ff68ce866fd13f2bcc
|
APPSECRET: 4e00bbf3fc75a1ff68ce866fd13f2bcc
|
||||||
# b84ee0efaa0d9a649746ac65525f8e10
|
# b84ee0efaa0d9a649746ac65525f8e10
|
||||||
KEY: 微信原生加密用的KEY
|
KEY: 微信原生加密用的KEY
|
||||||
|
|||||||
@@ -31,3 +31,6 @@ server:
|
|||||||
port: 8083
|
port: 8083
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /manage
|
context-path: /manage
|
||||||
|
compression:
|
||||||
|
enabled: true
|
||||||
|
mime-types: application/json
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ public class MerchantChannelStatusServiceImpl extends ServiceImpl<MerchantChanne
|
|||||||
|
|
||||||
UserApp userApp = new UserApp().setMerchantCode(merchantCode).setUserType("promoter");
|
UserApp userApp = new UserApp().setMerchantCode(merchantCode).setUserType("promoter");
|
||||||
userApp = userAppService.queryUserApp(userApp);
|
userApp = userAppService.queryUserApp(userApp);
|
||||||
|
|
||||||
//TODO 微信机器人消息推送暂时干掉
|
//TODO 微信机器人消息推送暂时干掉
|
||||||
//wxTalkService.sendAuditAlert(userApp.getUserId() + "");
|
//wxTalkService.sendAuditAlert(userApp.getUserId() + "");
|
||||||
}
|
}
|
||||||
@@ -233,7 +234,7 @@ public class MerchantChannelStatusServiceImpl extends ServiceImpl<MerchantChanne
|
|||||||
generalPushUtil.sendAllPlatByAlias(Collections.singletonList(userApp.getUserId() + ""), "收银呗审核通知", errMsg, "1");
|
generalPushUtil.sendAllPlatByAlias(Collections.singletonList(userApp.getUserId() + ""), "收银呗审核通知", errMsg, "1");
|
||||||
|
|
||||||
// 机器人发送已处理的信息到群组
|
// 机器人发送已处理的信息到群组
|
||||||
wxTalkService.sendAuditResultAlert(userApp.getUserId() + "");
|
//wxTalkService.sendAuditResultAlert(userApp.getUserId() + "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1964,7 +1964,7 @@ public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, M
|
|||||||
try {
|
try {
|
||||||
Notice notice = new Notice(2,98,userApp);
|
Notice notice = new Notice(2,98,userApp);
|
||||||
notice.setUniqueKey(order.getOrderNumber()+userApp.getUserId());
|
notice.setUniqueKey(order.getOrderNumber()+userApp.getUserId());
|
||||||
String content = "收银呗到账" + order.getConsumeFee() + "元";
|
String content = "快银到账" + order.getConsumeFee() + "元";
|
||||||
notice.setConrtent(content);
|
notice.setConrtent(content);
|
||||||
noticeService.saveOrUpdate(notice);
|
noticeService.saveOrUpdate(notice);
|
||||||
// 会员充值播报
|
// 会员充值播报
|
||||||
@@ -1976,7 +1976,7 @@ public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, M
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(UserVoice.ENABLE.equals(voice.getPaySuccess())){
|
if(UserVoice.ENABLE.equals(voice.getPaySuccess())){
|
||||||
generalPushUtil.sendAllPlatByAlias(alias, "收银呗到账通知", content, extrasparam);
|
generalPushUtil.sendAllPlatByAliasExt(alias, content, content, extrasparam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//发送模板消息
|
//发送模板消息
|
||||||
|
|||||||
@@ -120,9 +120,10 @@ public abstract class BaseMerAuditHandler<T extends IMerAuditHandler> implements
|
|||||||
QueryWrapper<MerchantImage> queryWrapper = new QueryWrapper<MerchantImage>()
|
QueryWrapper<MerchantImage> queryWrapper = new QueryWrapper<MerchantImage>()
|
||||||
.eq("merchantCode", merchantChannelStatus.getMerchantCode()).eq("photoType", "06");
|
.eq("merchantCode", merchantChannelStatus.getMerchantCode()).eq("photoType", "06");
|
||||||
MerchantImage merchantImage = merchantImageMapper.selectOne(queryWrapper);
|
MerchantImage merchantImage = merchantImageMapper.selectOne(queryWrapper);
|
||||||
String baseUrl = "https://life.sxczgkj.cn/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=add_merchan&do=web&m=we7_wmall&i=1";
|
//String baseUrl = "https://life.sxczgkj.cn/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=add_merchan&do=web&m=we7_wmall&i=1";
|
||||||
|
String baseUrl = "https://kysh.sxczgkj.cn/javaApi/java-api/add-store";
|
||||||
StringBuffer sb = new StringBuffer(baseUrl);
|
StringBuffer sb = new StringBuffer(baseUrl);
|
||||||
sb.append("&title=").append(merchantBaseInfo.getAlias());
|
sb.append("?title=").append(merchantBaseInfo.getAlias());
|
||||||
sb.append("&password=").append(userInfo.getPassword().toLowerCase());
|
sb.append("&password=").append(userInfo.getPassword().toLowerCase());
|
||||||
sb.append("&mobile=").append(userInfo.getLoginName());
|
sb.append("&mobile=").append(userInfo.getLoginName());
|
||||||
sb.append("&syb_m_id=").append(merchantStore.getId());
|
sb.append("&syb_m_id=").append(merchantStore.getId());
|
||||||
|
|||||||
@@ -277,9 +277,10 @@ public class RyxMerAuditHandler {
|
|||||||
QueryWrapper<MerchantImage> queryWrapper = new QueryWrapper<MerchantImage>()
|
QueryWrapper<MerchantImage> queryWrapper = new QueryWrapper<MerchantImage>()
|
||||||
.eq("merchantCode", merchantChannelStatus.getMerchantCode()).eq("photoType", "06");
|
.eq("merchantCode", merchantChannelStatus.getMerchantCode()).eq("photoType", "06");
|
||||||
MerchantImage merchantImage = merchantImageMapper.selectOne(queryWrapper);
|
MerchantImage merchantImage = merchantImageMapper.selectOne(queryWrapper);
|
||||||
String baseUrl = "https://life.sxczgkj.cn/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=add_merchan&do=web&m=we7_wmall&i=1";
|
//String baseUrl = "https://life.sxczgkj.cn/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=add_merchan&do=web&m=we7_wmall&i=1";
|
||||||
|
String baseUrl = "https://kysh.sxczgkj.cn/javaApi/java-api/add-store";
|
||||||
StringBuffer sb = new StringBuffer(baseUrl);
|
StringBuffer sb = new StringBuffer(baseUrl);
|
||||||
sb.append("&title=").append(merchantBaseInfo.getAlias());
|
sb.append("?title=").append(merchantBaseInfo.getAlias());
|
||||||
sb.append("&password=").append(userInfo.getPassword().toLowerCase());
|
sb.append("&password=").append(userInfo.getPassword().toLowerCase());
|
||||||
sb.append("&mobile=").append(userInfo.getLoginName());
|
sb.append("&mobile=").append(userInfo.getLoginName());
|
||||||
sb.append("&syb_m_id=").append(merchantStore.getId());
|
sb.append("&syb_m_id=").append(merchantStore.getId());
|
||||||
|
|||||||
@@ -350,9 +350,10 @@ public class SxfMerAuditHandler {
|
|||||||
QueryWrapper<MerchantImage> queryWrapper = new QueryWrapper<MerchantImage>()
|
QueryWrapper<MerchantImage> queryWrapper = new QueryWrapper<MerchantImage>()
|
||||||
.eq("merchantCode", merchantChannelStatus.getMerchantCode()).eq("photoType", "06");
|
.eq("merchantCode", merchantChannelStatus.getMerchantCode()).eq("photoType", "06");
|
||||||
MerchantImage merchantImage = merchantImageMapper.selectOne(queryWrapper);
|
MerchantImage merchantImage = merchantImageMapper.selectOne(queryWrapper);
|
||||||
String baseUrl = "https://life.sxczgkj.cn/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=add_merchan&do=web&m=we7_wmall&i=1";
|
//String baseUrl = "https://life.sxczgkj.cn/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=add_merchan&do=web&m=we7_wmall&i=1";
|
||||||
|
String baseUrl = "https://kysh.sxczgkj.cn/javaApi/java-api/add-store";
|
||||||
StringBuilder sb = new StringBuilder(baseUrl);
|
StringBuilder sb = new StringBuilder(baseUrl);
|
||||||
sb.append("&title=").append(merchantBaseInfo.getAlias());
|
sb.append("?title=").append(merchantBaseInfo.getAlias());
|
||||||
sb.append("&password=").append(userInfo.getPassword().toLowerCase());
|
sb.append("&password=").append(userInfo.getPassword().toLowerCase());
|
||||||
sb.append("&mobile=").append(userInfo.getLoginName());
|
sb.append("&mobile=").append(userInfo.getLoginName());
|
||||||
sb.append("&syb_m_id=").append(merchantStore.getId());
|
sb.append("&syb_m_id=").append(merchantStore.getId());
|
||||||
|
|||||||
@@ -68,7 +68,18 @@ public class GeneralPushUtil implements IPush {
|
|||||||
mobPushUtil.sendIOSByAlias(alias, notificationTitle, msgContent, extrasParam);
|
mobPushUtil.sendIOSByAlias(alias, notificationTitle, msgContent, extrasParam);
|
||||||
userPushService.push(alias, notificationTitle, msgContent, extrasParam);*/
|
userPushService.push(alias, notificationTitle, msgContent, extrasParam);*/
|
||||||
|
|
||||||
MobV2PushUtil.sendSingleByAlias(alias, "快银到账1万元", "快银到账1万元", "payload:{voice:\"快银到账1万元\",type:\"1\"}}");
|
//MobV2PushUtil.sendSingleByAlias(alias, notificationTitle, msgContent, "payload:{voice:\"" + msgContent + "\",type:\"1\"}}");
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendAllPlatByAliasExt(List<String> alias, String notificationTitle, String msgContent, String extrasParam) {
|
||||||
|
try {
|
||||||
|
|
||||||
|
MobV2PushUtil.sendSingleByAlias(alias, notificationTitle, msgContent, "payload:{voice:\"" + msgContent + "\",type:\"1\"}}");
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -202,9 +202,15 @@ public class MerchantController {
|
|||||||
return "3cdbacb2d4ceefa36ef1c43d0c562fb9";
|
return "3cdbacb2d4ceefa36ef1c43d0c562fb9";
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
@GetMapping("/auth/Hhk6kRGkb7.txt")
|
@GetMapping("/auth/ODzUwrTrcr.txt")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public String aKfAirN1hO() {
|
public String aKfAirN1hO() {
|
||||||
|
return "68eb6c8f59bf143e3165aa5198c6905f";
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/auth/Hhk6kRGkb7.txt")
|
||||||
|
@ResponseBody
|
||||||
|
public String Hhk6kRGkb7() {
|
||||||
return "c9b7ead4b4b0efd96c335aad9d445f04";
|
return "c9b7ead4b4b0efd96c335aad9d445f04";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user