| New file |
| | |
| | | package com.java110.utils.cache; |
| | | |
| | | import com.java110.utils.constant.MappingConstant; |
| | | |
| | | /** |
| | | * 系统平台url 地址 |
| | | * |
| | | */ |
| | | public class UrlCache { |
| | | |
| | | /** |
| | | * 获取业主端域名 |
| | | * @return |
| | | */ |
| | | public static String getOwnerUrl(){ |
| | | |
| | | return MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | |
| | | } |
| | | /** |
| | | * 获取员工地址 |
| | | * @return |
| | | */ |
| | | public static String getPropertyPhoneUrl(){ |
| | | return MappingCache.getValue(MappingConstant.URL_DOMAIN,"STAFF_WECHAT_URL"); |
| | | } |
| | | |
| | | /** |
| | | * 获取 商城手机端地址 |
| | | * @return |
| | | */ |
| | | public static String getMallAppUrl(){ |
| | | return MappingCache.getValue(MappingConstant.URL_DOMAIN,"MALL_URL"); |
| | | } |
| | | } |
| | |
| | | // 微信商户 |
| | | public static final String WECHAT_STORE_DOMAIN ="WECHAT_STORE"; |
| | | |
| | | |
| | | // 商城公众号 |
| | | public static final String MALL_WECHAT_DOMAIN ="MALL_WECHAT"; |
| | | |
| | | public static final String KEY_LOG_ON_OFF = "LOG_ON_OFF"; |
| | | |
| | | public static final String KEY_COST_TIME_ON_OFF = "COST_TIME_ON_OFF"; |
| | |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.utils.cache.CommonCache; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String communityId = reqJson.getString("communityId"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") + "/app/payment/notify/common/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl()+ "/app/payment/notify/common/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | import com.java110.intf.store.ISmallWechatV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.*; |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String tradeType = reqJson.getString("tradeType"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") + "/app/payment/notify/chinaums/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl() + "/app/payment/notify/chinaums/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | import com.java110.intf.store.ISmallWechatV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.*; |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String tradeType = reqJson.getString("tradeType"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") + "/app/payment/notify/wechat/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl() + "/app/payment/notify/wechat/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String tradeType = reqJson.getString("tradeType"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") + "/app/payment/notify/icbc/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl() + "/app/payment/notify/icbc/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | import com.java110.intf.store.ISmallWechatV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.*; |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String tradeType = reqJson.getString("tradeType"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") + "/app/payment/notify/wechat/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl() + "/app/payment/notify/wechat/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | import com.java110.intf.store.ISmallWechatV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String tradeType = reqJson.getString("tradeType"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL")+"/app/payment/notify/wechat/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl()+"/app/payment/notify/wechat/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.po.onlinePay.OnlinePayPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | String appId = context.getReqHeaders().get("app-id"); |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String tradeType = reqJson.getString("tradeType"); |
| | | String notifyUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL")+"/app/payment/notify/wechat/992020011134400001"; |
| | | String notifyUrl = UrlCache.getOwnerUrl()+"/app/payment/notify/wechat/992020011134400001"; |
| | | |
| | | String openId = reqJson.getString("openId"); |
| | | |
| | |
| | | |
| | | |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | public String getWxNotifyUrl() { |
| | | String wxNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wxNotifyUrl"); |
| | | if (!StringUtil.isEmpty(wxNotifyUrlCache)) { |
| | | return wxNotifyUrlCache; |
| | | return UrlCache.getOwnerUrl()+wxNotifyUrlCache; |
| | | } |
| | | return wxNotifyUrl; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getWechatAppId() { |
| | | String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId"); |
| | | String wechatAppIdCache = MappingCache.getValue(MappingConstant.MALL_WECHAT_DOMAIN, "wechatAppId"); |
| | | if (!StringUtil.isEmpty(wechatAppIdCache)) { |
| | | return wechatAppIdCache; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getWechatAppSecret() { |
| | | String wechatAppSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppSecret"); |
| | | String wechatAppSecretCache = MappingCache.getValue(MappingConstant.MALL_WECHAT_DOMAIN, "wechatAppSecret"); |
| | | if (!StringUtil.isEmpty(wechatAppSecretCache)) { |
| | | return wechatAppSecretCache; |
| | | } |
| | |
| | | public String getRentingNotifyUrl() { |
| | | String rentingNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "rentingNotifyUrl"); |
| | | if (!StringUtil.isEmpty(rentingNotifyUrlCache)) { |
| | | return rentingNotifyUrlCache; |
| | | return UrlCache.getMallAppUrl()+rentingNotifyUrlCache; |
| | | } |
| | | return rentingNotifyUrl; |
| | | } |
| | |
| | | public String getOweFeeNotifyUrl() { |
| | | String oweFeeNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "oweFeeNotifyUrl"); |
| | | if (!StringUtil.isEmpty(oweFeeNotifyUrlCache)) { |
| | | return oweFeeNotifyUrlCache; |
| | | return UrlCache.getOwnerUrl()+oweFeeNotifyUrlCache; |
| | | } |
| | | return oweFeeNotifyUrl; |
| | | } |
| | |
| | | public String getGoodsNotifyUrl() { |
| | | String goodsNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "goodsNotifyUrl"); |
| | | if (!StringUtil.isEmpty(goodsNotifyUrlCache)) { |
| | | return goodsNotifyUrlCache; |
| | | return UrlCache.getMallAppUrl()+goodsNotifyUrlCache; |
| | | } |
| | | return goodsNotifyUrl; |
| | | } |
| | |
| | | public String getTempCarFeeNotifyUrl() { |
| | | String tempCarFeeNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "tempCarFeeNotifyUrl"); |
| | | if (!StringUtil.isEmpty(tempCarFeeNotifyUrlCache)) { |
| | | return tempCarFeeNotifyUrlCache; |
| | | return UrlCache.getOwnerUrl()+ tempCarFeeNotifyUrlCache; |
| | | } |
| | | return tempCarFeeNotifyUrl; |
| | | } |
| | |
| | | import com.java110.api.smo.AppAbstractComponentSMO; |
| | | import com.java110.api.smo.payment.IToPayBackCitySMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import org.slf4j.Logger; |
| | |
| | | |
| | | ResponseEntity responseEntity = null; |
| | | |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") |
| | | String ownerUrl = UrlCache.getOwnerUrl() |
| | | + "/#/pages/reportInfoBack/reportInfoBack?communityId=" |
| | | + paramIn.getString( "communityId" ) ; |
| | | Map result = new HashMap( ); |
| | |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.intf.store.ISmallWechatV1InnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import org.slf4j.Logger; |
| | |
| | | ResponseEntity responseEntity = null; |
| | | |
| | | |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") |
| | | String ownerUrl = UrlCache.getOwnerUrl() |
| | | + "/#/pages/reportInfoDetail/reportInfoDetail?settingId=" + |
| | | paramIn.getString("settingId") + |
| | | "&communityId=" + paramIn.getString("communityId"); |
| | |
| | | import com.java110.dto.owner.OwnerAppUserDto; |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | |
| | | |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, paramAuth.toJSONString(), |
| | | "/staff/updateStaffAppAuth", HttpMethod.POST); |
| | | url = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | url = UrlCache.getOwnerUrl(); |
| | | if(url.contains("/#/")){ |
| | | if(url.contains("?")){ |
| | | url += ("&wAppId="+smallWeChatDto.getAppId()); |
| | |
| | | } |
| | | |
| | | String openUrl = ""; |
| | | String url = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String url = UrlCache.getOwnerUrl(); |
| | | url = url |
| | | + "/app/loginStaffWechatAuth?appId=992020061452450002&staffId=" |
| | | + staffId + "&storeId=" + storeId + "&wId=" + WechatFactory.getWId(smallWeChatDto.getAppId()) |
| | |
| | | import com.java110.intf.common.IMachineTypeV1InnerServiceSMO; |
| | | import com.java110.intf.common.IEquipmentAccountV1InnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | int count = equipmentAccountV1InnerServiceSMOImpl.queryEquipmentAccountsCount(equipmentAccountDto); |
| | | |
| | | List<EquipmentAccountDto> equipmentAccountDtos = null; |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String ownerUrl = UrlCache.getOwnerUrl(); |
| | | |
| | | |
| | | if (count > 0) { |
| | |
| | | import com.java110.intf.community.IParkingBoxAreaV1InnerServiceSMO; |
| | | import com.java110.intf.store.ISmallWeChatInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | smallWeChatDto.setObjId(reqJson.getString("communityId")); |
| | | smallWeChatDto.setWeChatType(SmallWeChatDto.WECHAT_TYPE_PUBLIC); |
| | | List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto); |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String ownerUrl = UrlCache.getOwnerUrl(); |
| | | ownerUrl += ("/#/pages/fee/tempParkingFee?paId=" + getPaIds(reqJson)+"&communityId="+reqJson.getString("communityId")); |
| | | if (smallWeChatDtos != null && smallWeChatDtos.size() > 0) { |
| | | ownerUrl += ("&appId=" + smallWeChatDtos.get(0).getAppId()); |
| | |
| | | import com.java110.intf.community.IParkingBoxAreaV1InnerServiceSMO; |
| | | import com.java110.intf.store.ISmallWeChatInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | smallWeChatDto.setObjId(reqJson.getString("communityId")); |
| | | smallWeChatDto.setWeChatType(SmallWeChatDto.WECHAT_TYPE_PUBLIC); |
| | | List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto); |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String ownerUrl = UrlCache.getOwnerUrl(); |
| | | ownerUrl += ("/#/pages/unlicensedCarIn/unlicensedCarIn?communityId=" + |
| | | reqJson.getString("communityId") + "&machineId=" + |
| | | reqJson.getString("machineId")); |
| | |
| | | import com.java110.dto.systemInfo.SystemInfoDto; |
| | | import com.java110.intf.common.ISystemInfoV1InnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | |
| | | if (count > 0) { |
| | | systemInfoDtos = systemInfoV1InnerServiceSMOImpl.querySystemInfos(systemInfoDto); |
| | | systemInfoDtos.get(0).setOwnerUrl(MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL")); |
| | | systemInfoDtos.get(0).setPropertyUrl(MappingCache.getValue(MappingConstant.URL_DOMAIN,"STAFF_WECHAT_URL")); |
| | | systemInfoDtos.get(0).setOwnerUrl(UrlCache.getOwnerUrl()); |
| | | systemInfoDtos.get(0).setPropertyUrl(UrlCache.getPropertyPhoneUrl()); |
| | | } else { |
| | | systemInfoDtos = new ArrayList<>(); |
| | | } |
| | |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.po.owner.RepairUserPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.ImageUtils; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | data.setRemark(new Content("您的报修已受理,请保持电话畅通,以便维修人员及时跟您取得联系!感谢您的使用!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | if (!StringUtil.isEmpty(wechatUrl) && wechatUrl.contains("?")) { |
| | | wechatUrl += ("&wAppId=" + weChatDto.getAppId()); |
| | | } else { |
| | |
| | | import com.java110.po.fee.PayFeePo; |
| | | import com.java110.po.owner.RepairUserPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | data.setRemark(new Content("请点击查看详情,对我们的工作进行评价,以便提供更优质的服务,感谢您的配合和使用,祝您生活愉快,阖家欢乐!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | data.setRemark(new Content("请您及时缴费,感谢您的配合和使用,祝您生活愉快,阖家欢乐!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.intf.user.IStaffAppAuthInnerServiceSMO; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | data.setRemark(new Content("空置房申请验房已通过,系统已为您安排下一步审核流程,请耐心等待!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | data.setRemark(new Content("感谢您的使用,如有疑问请联系相关物业人员。")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.intf.user.IOwnerRoomRelInnerServiceSMO; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | data.setRemark(new Content("感谢您的使用!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | data.setRemark(new Content("感谢您的使用,如有疑问请联系相关物业人员。")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.job.adapt.hcIot.asyn.IIotSendAsyn; |
| | | import com.java110.po.owner.VisitPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | } |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.po.notice.NoticePo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | data.setRemark(new Content("如有疑问请联系相关物业人员")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | if (!StringUtil.isEmpty(wechatUrl) && wechatUrl.contains("?")) { |
| | | wechatUrl += ("&wAppId=" + weChatDto.getAppId()); |
| | | } else { |
| | |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.po.fee.PayFeeDetailPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | data.setRemark(new Content("感谢您的使用,如有疑问请联系相关物业人员")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | if(wechatUrl.contains("?")){ |
| | | wechatUrl += ( "&wAppId="+smallWeChatDtos.get(0).getAppId()); |
| | | }else{ |
| | |
| | | import com.java110.intf.user.IOwnerRoomRelInnerServiceSMO; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.DateUtil; |
| | |
| | | data.setRemark(new Content("如有其它问题,请联系" + communityDtos.get(0).getName() + "客服,联系电话" + tel + ",感谢您的使用。")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.intf.user.IRoomRenovationsInnerServiceSMO; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | data.setRemark(new Content("如有任何疑问,请咨询" + communityDto.getName() + "客服部,咨询电话:" + tel + "。")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.intf.user.*; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | data.setRemark(new Content("物业联系电话:" + tel + ",请到物业管理处或通过手机缴纳装修押金!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.intf.user.IOwnerRoomRelInnerServiceSMO; |
| | | import com.java110.job.quartz.TaskSystemQuartz; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | data.setRemark(new Content("请您及时续费,以免影响您的正常使用!")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |
| | | logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage)); |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | |
| | | import com.java110.po.wechatSubscribe.WechatSubscribePo; |
| | | import com.java110.service.smo.ISaveSystemErrorSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.DateUtil; |
| | |
| | | if (wechatSubscribeDtos == null || wechatSubscribeDtos.size() < 1) { |
| | | return; |
| | | } |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | Miniprogram miniprogram = null; |
| | | if (wechatUrl.startsWith("https://") || wechatUrl.startsWith("http://")) { |
| | | miniprogram = new Miniprogram(); |
| | |
| | | data.setRemark(new Content("如有疑问请联系相关物业人员")); |
| | | templateMessage.setData(data); |
| | | //获取业主公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | if (!StringUtil.isEmpty(wechatUrl) && wechatUrl.contains("?")) { |
| | | wechatUrl += ("&wAppId=" + weChatDto.getAppId()); |
| | | } else { |
| | |
| | | } |
| | | |
| | | private void doSend(List<OwnerAppUserDto> ownerAppUserDtos, NoticeDto noticeDto, String templateId, String accessToken, SmallWeChatDto weChatDto) { |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") + "/#/pages/notice/detail/detail?noticeId="; |
| | | String wechatUrl = UrlCache.getOwnerUrl() + "/#/pages/notice/detail/detail?noticeId="; |
| | | ResponseEntity<String> responseEntity = null; |
| | | String sendTemplate = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, WechatConstant.SEND_TEMPLATE_URL); |
| | | if (StringUtil.isEmpty(sendTemplate)) { |
| | |
| | | import com.java110.user.bmo.staffAppAuth.ISaveStaffAppAuthBMO; |
| | | import com.java110.user.bmo.staffAppAuth.IUpdateStaffAppAuthBMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY); |
| | | smallWeChatDto.setWechatType(SmallWeChatDto.WECHAT_TYPE_PUBLIC); |
| | | List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto); |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") |
| | | String ownerUrl = UrlCache.getOwnerUrl() |
| | | + "/app/staffAuth?storeId=" + storeId + "&staffId=" + userId |
| | | + "&communityId=" + communityId + "&appId=" + AppDto.WECHAT_OWNER_APP_ID; |
| | | |
| | |
| | | |
| | | |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | public String getWxNotifyUrl() { |
| | | String wxNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wxNotifyUrl"); |
| | | if (!StringUtil.isEmpty(wxNotifyUrlCache)) { |
| | | return wxNotifyUrlCache; |
| | | return UrlCache.getOwnerUrl()+wxNotifyUrlCache; |
| | | } |
| | | return wxNotifyUrl; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getWechatAppId() { |
| | | String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId"); |
| | | String wechatAppIdCache = MappingCache.getValue(MappingConstant.MALL_WECHAT_DOMAIN, "wechatAppId"); |
| | | if (!StringUtil.isEmpty(wechatAppIdCache)) { |
| | | return wechatAppIdCache; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getWechatAppSecret() { |
| | | String wechatAppSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppSecret"); |
| | | String wechatAppSecretCache = MappingCache.getValue(MappingConstant.MALL_WECHAT_DOMAIN, "wechatAppSecret"); |
| | | if (!StringUtil.isEmpty(wechatAppSecretCache)) { |
| | | return wechatAppSecretCache; |
| | | } |
| | |
| | | public String getRentingNotifyUrl() { |
| | | String rentingNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "rentingNotifyUrl"); |
| | | if (!StringUtil.isEmpty(rentingNotifyUrlCache)) { |
| | | return rentingNotifyUrlCache; |
| | | return UrlCache.getMallAppUrl()+rentingNotifyUrlCache; |
| | | } |
| | | return rentingNotifyUrl; |
| | | } |
| | |
| | | public String getOweFeeNotifyUrl() { |
| | | String oweFeeNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "oweFeeNotifyUrl"); |
| | | if (!StringUtil.isEmpty(oweFeeNotifyUrlCache)) { |
| | | return oweFeeNotifyUrlCache; |
| | | return UrlCache.getOwnerUrl()+oweFeeNotifyUrlCache; |
| | | } |
| | | return oweFeeNotifyUrl; |
| | | } |
| | |
| | | public String getGoodsNotifyUrl() { |
| | | String goodsNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "goodsNotifyUrl"); |
| | | if (!StringUtil.isEmpty(goodsNotifyUrlCache)) { |
| | | return goodsNotifyUrlCache; |
| | | return UrlCache.getMallAppUrl()+goodsNotifyUrlCache; |
| | | } |
| | | return goodsNotifyUrl; |
| | | } |
| | |
| | | public String getTempCarFeeNotifyUrl() { |
| | | String tempCarFeeNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "tempCarFeeNotifyUrl"); |
| | | if (!StringUtil.isEmpty(tempCarFeeNotifyUrlCache)) { |
| | | return tempCarFeeNotifyUrlCache; |
| | | return UrlCache.getOwnerUrl()+tempCarFeeNotifyUrlCache; |
| | | } |
| | | return tempCarFeeNotifyUrl; |
| | | } |
| | |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import org.slf4j.Logger; |
| | |
| | | |
| | | ResponseEntity responseEntity = null; |
| | | |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") |
| | | String ownerUrl = UrlCache.getOwnerUrl() |
| | | + "/#/pages/reportInfoBack/reportInfoBack?communityId=" |
| | | + paramIn.getString( "communityId" ) ; |
| | | Map result = new HashMap( ); |
| | |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.intf.store.ISmallWechatV1InnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import org.slf4j.Logger; |
| | |
| | | ResponseEntity responseEntity = null; |
| | | |
| | | |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") |
| | | String ownerUrl = UrlCache.getOwnerUrl() |
| | | + "/#/pages/reportInfoDetail/reportInfoDetail?settingId=" + |
| | | paramIn.getString("settingId") + |
| | | "&communityId=" + paramIn.getString("communityId"); |
| | |
| | | import com.java110.dto.owner.OwnerAppUserDto; |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.constant.WechatConstant; |
| | |
| | | |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, paramAuth.toJSONString(), |
| | | "/staff/updateStaffAppAuth", HttpMethod.POST); |
| | | url = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | url = UrlCache.getOwnerUrl(); |
| | | if(url.contains("/#/")){ |
| | | if(url.contains("?")){ |
| | | url += ("&wAppId="+smallWeChatDto.getAppId()); |
| | |
| | | } |
| | | |
| | | String openUrl = ""; |
| | | String url = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | String url = UrlCache.getOwnerUrl(); |
| | | url = url |
| | | + "/app/loginStaffWechatAuth?appId=992020061452450002&staffId=" |
| | | + staffId + "&storeId=" + storeId + "&wId=" + WechatFactory.getWId(smallWeChatDto.getAppId()) |