Browse Source

update:阅读文章添加积分

ct 1 week ago
parent
commit
d414bbd222

+ 2 - 2
fs-service/src/main/java/com/fs/his/service/impl/FsArticleServiceImpl.java

@@ -144,7 +144,7 @@ public class FsArticleServiceImpl implements IFsArticleService
         param.setBusinessId(articleId.toString());
         try {
             R r = userIntegralLogsService.addIntegralTemplate(param);
-            if (!r.get("code").equals("200")) {
+            if (!"200".equals(r.get("code").toString())) {
                 redisCache.deleteObject(finishViewKey);
                 return R.error("阅读文章领取积分失败:" + r.get("msg"));
             }
@@ -153,7 +153,7 @@ public class FsArticleServiceImpl implements IFsArticleService
             redisCache.deleteObject(finishViewKey);
             return R.error("阅读文章领取积分失败");
         }
-        return R.ok();
+        return R.ok("今日已领取奖励!");
     }
 
     @Override