|
@@ -190,8 +190,9 @@ public class LoginServiceImpl implements LoginService {
|
|
|
Integer savedCount=null;
|
|
|
if(userID!=null) {
|
|
|
Integer shopID = messageCenterMapper.shopID(userID);
|
|
|
+ log.info(">>>>>"+shopID);
|
|
|
Integer newReceiptType = messageCenterMapper.newReceiptType(shopID);
|
|
|
-
|
|
|
+ log.info(">>>>>"+newReceiptType);
|
|
|
Timerw(userID);
|
|
|
Timesjf(userID);
|
|
|
}
|
|
@@ -1023,6 +1024,28 @@ if(userID!=null) {
|
|
|
messageCenter.setContent(nickName);
|
|
|
messageCenter.setTime(current);
|
|
|
messageCenterMapper.addMessageCenter(messageCenter);
|
|
|
+
|
|
|
+ //发短信
|
|
|
+ String message = "【采美365】恭喜您成功成为“引号内填写完整的供应商名称”的运营人员,您可通过微信直接登录采美商城管理您的账号。";
|
|
|
+ String mobile = messageCenterMapper.contractMobiles(operation.getShopId());
|
|
|
+ if (mobile != null && mobile != "") {
|
|
|
+ remoteCallService.remoteSendSms(2, 3, mobile, message);
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ log.info("***********供应商通过邀请码登入微信公众号推送************");
|
|
|
+ String accessToken = weChatService.getAccessToken();
|
|
|
+ String openid = messageCenterMapper.getOpenidListByPermission(unionId);
|
|
|
+ String time=current;
|
|
|
+ String remarkText = "绑定成功后,您可通过微信登录采美商城管理您的账号";
|
|
|
+ // 跳转到【小程序付款-选择支付方式页面】
|
|
|
+ String pagePath = "https://www.caimei365.com/";
|
|
|
+ // sendTemplateMsg(openid, 标题, 金额, 收款日期, 备注, 跳转链接
|
|
|
+ log.error("获取openid>>>>>" + openid);
|
|
|
+ weChatService.sendTemplateMessg(accessToken,openid,nickName,time,remarkText, pagePath);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("【供应商通过邀请码登入通知】获取微信公众号access_token异常!", e);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
// 更新运营人员信息
|
|
|
operationMapper.updateOperationByInvitation(operationPo);
|