zhaoxian 2 vuotta sitten
vanhempi
commit
42af4d82ec

+ 6 - 1
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/KuaishouPromoterServiceImpl.java

@@ -287,7 +287,12 @@ public class KuaishouPromoterServiceImpl implements IKuaishouPromoterService {
                         promoterId
                 );
                 if ("1".equals(mediaId)) {
-                    kuaishouPromoter.setFollowerIncr(result.getLong("follower_incr"));
+                    String followerincr = result.getString("follower_incr");
+                    if (Check.isNotNull(followerincr) && !"-".equals(followerincr)) {
+                        kuaishouPromoter.setFollowerIncr(result.getLong("follower_incr"));
+                    } else {
+                        kuaishouPromoter.setFollowerIncr(0l);
+                    }
                     kuaishouPromoter.setLiveCount30(result.getInteger("live_count_30"));
                     kuaishouPromoter.setLiveAverageUser30(result.getString("live_average_user_30"));
                     kuaishouPromoter.setAwemeDiggFollowerRation(result.getString("aweme_digg_follower_ration"));