Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
ityouknow committed Nov 22, 2017
1 parent c56e04c commit 7eec2dd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
*.iml
*.class
.checkstyle
/.ide
/.idea
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

### [favorites website →](http://favorites.ren/)

**[github地址](https://github.com/cloudfavorites/favorites-web)**

**[码云地址](https://gitee.com/ityouknow/favorites-web)**

> QQ交流群:565108729
Expand All @@ -25,7 +27,12 @@
[云收藏部署方案](https://github.com/cloudfavorites/favorites-web/wiki/%E4%BA%91%E6%94%B6%E8%97%8F%E9%83%A8%E7%BD%B2%E6%96%B9%E6%A1%88)



<<<<<<< HEAD
**大家对这个项目有什么问题可以新建[issues](https://github.com/cloudfavorites/favorites-web/issues/new)提问,在提问之前请先查看已经关闭的[issues](https://github.com/cloudfavorites/favorites-web/issues?q=is%3Aissue+is%3Aclosed)**
=======

**大家对这个项目有什么问题可以新建[issues](https://github.com/cloudfavorites/favorites-web/issues/new)提问,在提问之前请先查看已经关闭的[issues](https://github.com/cloudfavorites/favorites-web/issues?q=is%3Aissue+is%3Aclosed)。特别是请提供一份项目sql这样的问题,我已经回答了1000多次了!**
>>>>>>> origin/master

**特别是请提供一份项目sql这样的问题,我已经回答了300多次了**
**目前网站运行在阿里云最低配置的环境下,所以访问比较缓慢,有可以提供免费服务器的小伙伴可以联系我**
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
apply plugin: 'idea'

Expand Down Expand Up @@ -40,6 +40,7 @@ dependencies {
compile 'org.webjars.bower:bootstrap:3.3.6'
compile("org.webjars:vue:1.0.24")
compile 'org.webjars.bower:vue-resource:0.7.0'
compile group: 'org.webjars', name: 'webjars-locator', version: '0.14'
compile group: 'org.jsoup', name: 'jsoup', version: '1.9.2'
compile 'org.springframework.boot:spring-boot-starter-tomcat'
}
Expand All @@ -50,4 +51,4 @@ bootRun {

springBoot {
mainClass = "com.favorites.Application"
}
}
4 changes: 2 additions & 2 deletions src/main/java/com/favorites/web/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class UserController extends BaseController {
@LoggerManage(description="登陆")
public ResponseData login(User user,HttpServletResponse response) {
try {
User loginUser = userRepository.findByUserNameOrEmail(user.getUserName(), user.getUserName());
User loginUser = userRepository.findByUserNameOrEmail(user.getUserName(), user.getEmail());
if (loginUser == null ) {
return new ResponseData(ExceptionMsg.LoginNameNotExists);
}else if(!loginUser.getPassWord().equals(getPwd(user.getPassWord()))){
Expand Down Expand Up @@ -405,4 +405,4 @@ public ResponseData uploadBackground(String dataUrl){
}
}

}
}

0 comments on commit 7eec2dd

Please sign in to comment.