Skip to content

Commit

Permalink
add open api
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiyongxu committed Dec 9, 2020
1 parent d49c7b8 commit 1f052f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.ijson.blog.dao.entity.ConfigEntity;
import com.ijson.blog.model.Constant;
import com.ijson.mongo.support.AbstractDao;
import org.apache.logging.log4j.util.Strings;
import org.mongodb.morphia.query.Query;
import org.mongodb.morphia.query.UpdateOperations;
import org.springframework.stereotype.Component;
Expand All @@ -28,7 +29,7 @@ public ConfigEntity updateWebSite(ConfigEntity entity) {
operations.set(ConfigEntity.Fields.regRoleId, entity.getRegRoleId());
operations.set(ConfigEntity.Fields.siteCopyRight, entity.getSiteCopyRight());
operations.set(ConfigEntity.Fields.siteDesc, entity.getSiteDesc());
operations.set(ConfigEntity.Fields.siteBulletin, entity.getSiteBulletin());
operations.set(ConfigEntity.Fields.siteBulletin, Strings.isEmpty(entity.getSiteBulletin())?"":entity.getSiteBulletin());
operations.set(ConfigEntity.Fields.sponsor, entity.getSponsor());
return datastore.findAndModify(query, operations, false, true);
}
Expand Down
4 changes: 4 additions & 0 deletions in-blog-web/tomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ IBO_HOME=/Users/cuiyongxu/workspace/ijson/in-blog-boot

# 2. set tomcat home path
TOMCAT_HOME=/Users/cuiyongxu/software/tomcat-8.5.58

IBO_HOME=/home/liyaping/workspace/in-blog-boot
TOMCAT_HOME=/home/liyaping/develop/blog-tomcat-8.5.60

cd $IBO_HOME || exit

#git pull
Expand Down

0 comments on commit 1f052f3

Please sign in to comment.