huanghongfa
2020-12-21 8c6119a8677cf853469b14da2f8fde990a2f5a3d
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
@@ -64,7 +64,7 @@
    @PutMapping("easyphoto")
    public R putEasyPhoto (@RequestBody ComActEasyPhotoVO comActEasyPhotoVO){
        Long id = comActEasyPhotoVO.getId();
        if (ObjectUtils.isEmpty(id)) {
        if (null==id||id==0) {
            return R.fail("随手拍主键不能为空");
        }
        Long userId = this.getUserId();
@@ -92,6 +92,11 @@
        LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
        Long communityId = loginUserInfo.getCommunityId();
        Long userId = loginUserInfo.getUserId();
        String phone = loginUserInfo.getPhone();
        if (ObjectUtils.isEmpty(phone)) {
            return R.fail("只有认证后的用户才能发布微心愿");
        }
        comActMicroWishVO.setSponsorPhone(phone);
        comActMicroWishVO.setCommunityId(communityId);
        comActMicroWishVO.setSponsorId(userId);
        return communityService.addMicroWish(comActMicroWishVO);
@@ -109,7 +114,7 @@
    @PutMapping("microwish")
    public R putMicroWish (@RequestBody ComActMicroWishVO comActMicroWishVO){
        Long id = comActMicroWishVO.getId();
        if (ObjectUtils.isEmpty(id)) {
        if (null==id||id==0) {
            return R.fail("微心愿主键不能为空");
        }
        Long userId = this.getUserId();