Merge branch 'local_20221014' into huacheng_test
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | private UserService userService; |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation(value = "当前登录用户信息", response = LoginUserInfoVO.class) |
| | | @GetMapping("info") |
| | |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation("获取用户") |
| | | @GetMapping("selectAutomessageSysUserById") |
| | | public R selectAutomessageSysUserById(@RequestParam("id")Long id){ |
| | | return communityService.selectAutomessageSysUserById(id); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @GetMapping("selectCommunityIds") |
| | | R selectCommunityIds(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 查询社区id集合 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("selectAutomessageSysUserById") |
| | | R selectAutomessageSysUserById(@RequestParam("id") Long id); |
| | | } |
| | |
| | | WxXCXTempSend wxXCXTempSend=new WxXCXTempSend(); |
| | | for(String openId:openIds){ |
| | | try { |
| | | WxUtil.sendLongTimeTemplate(openId,wxXCXTempSend.getXQAppAccessToken(),"疫情快讯",comActDynVO.getTitle().length()>10?comActDynVO.getTitle().substring(0,10)+"..":comActDynVO.getTitle(),"/pages/community_child/community/detail?id="+comActDynVO.getId()+"&title=疫情快讯详情"); |
| | | WxUtil.sendLongTimeTemplate(openId,wxXCXTempSend.getAccessToken("wx118de8a734d269f0"),"疫情快讯",comActDynVO.getTitle().length()>10?comActDynVO.getTitle().substring(0,10)+"..":comActDynVO.getTitle(),"/pages/community_child/community/detail?id="+comActDynVO.getId()+"&title=疫情快讯详情"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |