From 578342bd9c9e040a76f4af7912580c8b7532b5eb Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期一, 21 三月 2022 14:23:54 +0800
Subject: [PATCH] 党员认证Bug修改

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java
index 158b573..c452c25 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java
@@ -306,13 +306,27 @@
                         if (comActActivityVO.getId().equals(activitySignInVO.getActivityId())) {
                             currentList.add(activitySignInVO);
                             comActActivityVO.setIsComment(1);
-                            if(comActActivityVO.getTimes()==null){
-                                comActActivityVO.setTimes(1);
-                                comActActivityVO.setAward(comActActivityVO.getRewardIntegral());
+                            if(comActActivityVO.getType()!=3){
+                                if(comActActivityVO.getTimes()==null){
+                                    comActActivityVO.setTimes(1);
+                                    comActActivityVO.setAward(comActActivityVO.getRewardIntegral());
+                                }
+                                else {
+                                    comActActivityVO.setTimes(comActActivityVO.getTimes()+1);
+                                    comActActivityVO.setAward(comActActivityVO.getRewardIntegral()*comActActivityVO.getTimes());
+                                }
                             }
                             else {
-                                comActActivityVO.setTimes(comActActivityVO.getTimes()+1);
-                                comActActivityVO.setAward(comActActivityVO.getRewardIntegral()*comActActivityVO.getTimes());
+                                if(activitySignInVO.getEndTime()!=null){
+                                    if(comActActivityVO.getTimes()==null){
+                                        comActActivityVO.setTimes(1);
+                                        comActActivityVO.setAward(comActActivityVO.getRewardIntegral());
+                                    }
+                                    else {
+                                        comActActivityVO.setTimes(comActActivityVO.getTimes()+1);
+                                        comActActivityVO.setAward(comActActivityVO.getRewardIntegral()*comActActivityVO.getTimes());
+                                    }
+                                }
                             }
                         }
                     });
@@ -321,6 +335,18 @@
                     } else {
                         comActActivityVO.setActivitySignInList(currentList);
                     }
+                    if(comActActivityVO.getLimit()>0){
+                        if(comActActivityVO.getType()==3){
+                            if(comActActivityVO.getLimit()==currentList.size()||currentList.get(collect.size()).getEndTime()!=null){
+                                comActActivityVO.setIsRegist(1);
+                            }
+                        }
+                        else {
+                            if(comActActivityVO.getLimit()==currentList.size()){
+                                comActActivityVO.setIsRegist(1);
+                            }
+                        }
+                    }
                 });
             }
             //当前用户活动评分

--
Gitblit v1.7.1