Browse Source

跳转注册码页面

master
zy_Java 5 years ago
parent
commit
7bb4ea629a
  1. 2
      bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/CoreController.java
  2. 1
      bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/PracticeController.java
  3. 1
      bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/WxController.java
  4. 16
      pom.xml

2
bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/CoreController.java

@ -54,7 +54,7 @@ public class CoreController {
log.info("获取openId:"+openId); log.info("获取openId:"+openId);
User user = RedisUtil.getObject(RedisUtil.PREFIX_USER_INFO + openId); User user = RedisUtil.getObject(RedisUtil.PREFIX_USER_INFO + openId);
log.info("读取redis内的信息:"+user); log.info("读取redis内的信息:"+user);
if(user== null && StringUtils.isEmpty(user.getRegisterNo())){ if(user == null || StringUtils.isEmpty(user.getRegisterNo())){
mv.setViewName("/core/register");//跳转到注册码注册页面 mv.setViewName("/core/register");//跳转到注册码注册页面
return mv; return mv;
} }

1
bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/PracticeController.java

@ -12,6 +12,7 @@ import com.wmeimob.bjyy.util.UploadFileUtil_Servlet3;
import com.wmeimob.bjyy.vo.ResultVO; import com.wmeimob.bjyy.vo.ResultVO;
import com.wmeimob.bjyy.vo.TrainVo; import com.wmeimob.bjyy.vo.TrainVo;
import lombok.extern.log4j.Log4j; import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

1
bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/WxController.java

@ -4,6 +4,7 @@ import com.wmeimob.bjyy.common.BaseController;
import com.wmeimob.bjyy.vo.ResultVO; import com.wmeimob.bjyy.vo.ResultVO;
import com.wmeimob.wechat.core.JsSdkComponent; import com.wmeimob.wechat.core.JsSdkComponent;
import com.wmeimob.wechat.model.basic.WxJsSdkConfig; import com.wmeimob.wechat.model.basic.WxJsSdkConfig;
import lombok.extern.log4j.Log4j;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

16
pom.xml

@ -221,11 +221,11 @@
<version>4.11</version> <version>4.11</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <!-- <dependency>-->
<groupId>org.quartz-scheduler</groupId> <!-- <groupId>org.quartz-scheduler</groupId>-->
<artifactId>quartz</artifactId> <!-- <artifactId>quartz</artifactId>-->
<version>2.3.0</version> <!-- <version>2.3.0</version>-->
</dependency> <!-- </dependency>-->
<dependency> <dependency>
<groupId>com.qiniu</groupId> <groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId> <artifactId>qiniu-java-sdk</artifactId>
@ -363,6 +363,12 @@
<artifactId>jackson-annotations</artifactId> <artifactId>jackson-annotations</artifactId>
<version>2.11.2</version> <version>2.11.2</version>
</dependency> </dependency>
<!--Resource-->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<version>1.0</version>
</dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>

Loading…
Cancel
Save