update
This commit is contained in:
@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zhangchenbiao
|
* @author zhangchenbiao
|
||||||
* @FileName: LoginController
|
* @FileName: LoginController
|
||||||
@@ -40,8 +42,10 @@ public class LoginController {
|
|||||||
String userId = "", corpId = "", appType = AppTypeEnum.FEI_SHU.getValue();
|
String userId = "", corpId = "", appType = AppTypeEnum.FEI_SHU.getValue();
|
||||||
try {
|
try {
|
||||||
String value = "code=" + code + "&appType=" + appType + "&appId=" + appId;
|
String value = "code=" + code + "&appType=" + appType + "&appId=" + appId;
|
||||||
//todo zcb
|
|
||||||
JSONObject userInfo = isvHttpRequest.getUserIdByCode(value);
|
JSONObject userInfo = isvHttpRequest.getUserIdByCode(value);
|
||||||
|
if(Objects.isNull(userInfo)){
|
||||||
|
throw new ServiceException(ErrorCodeEnum.LOGIN_ERROR);
|
||||||
|
}
|
||||||
log.info("userInfo:{}", JSONObject.toJSONString(userInfo));
|
log.info("userInfo:{}", JSONObject.toJSONString(userInfo));
|
||||||
userId = userInfo.getString("openId");
|
userId = userInfo.getString("openId");
|
||||||
corpId = userInfo.getString("corpId");
|
corpId = userInfo.getString("corpId");
|
||||||
|
|||||||
@@ -33,8 +33,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://tzk.coolcollege.cn:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://tstore-isv.coolcollege.cn
|
isv.domain = https://tstore-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
|
|||||||
@@ -37,8 +37,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://dzk.coolcollege.cn:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://dstore-isv.coolcollege.cn
|
isv.domain = https://dstore-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
@@ -33,8 +33,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://10.7.53.199:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://hdstore-isv.coolcollege.cn
|
isv.domain = https://hdstore-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
@@ -40,8 +40,5 @@ customize_sub_table_size=10
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://localhost:2181
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://tstore-isv.coolcollege.cn
|
isv.domain = https://tstore-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
@@ -33,8 +33,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://10.6.49.221:2188,10.6.49.222:2188,10.6.49.223:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://store-isv.coolcollege.cn
|
isv.domain = https://store-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
@@ -33,8 +33,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://10.7.54.149:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://store-isv.coolcollege.cn
|
isv.domain = https://store-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
@@ -33,8 +33,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://tzk.coolcollege.cn:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=31010
|
|
||||||
|
|
||||||
isv.domain = https://tstore-isv.coolcollege.cn
|
isv.domain = https://tstore-isv.coolcollege.cn
|
||||||
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
get.user.id.by.code = /isv/v2/get_user_id_by_code
|
||||||
@@ -32,6 +32,3 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://tzk.coolcollege.cn:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
|
|||||||
@@ -36,6 +36,3 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://dzk.coolcollege.cn:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
@@ -32,6 +32,3 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://10.7.53.199:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
@@ -39,6 +39,3 @@ customize_sub_table_size=10
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://localhost:2181
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
@@ -32,6 +32,3 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://10.6.49.221:2188,10.6.49.222:2188,10.6.49.223:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
@@ -32,6 +32,3 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://10.7.54.149:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
@@ -32,6 +32,3 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
|||||||
|
|
||||||
mybatis.configuration.call-setters-on-nulls=true
|
mybatis.configuration.call-setters-on-nulls=true
|
||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
com.alipay.sofa.rpc.registry.address=zookeeper://tzk.coolcollege.cn:2188
|
|
||||||
com.alipay.sofa.rpc.bolt.port=30910
|
|
||||||
5
pom.xml
5
pom.xml
@@ -126,6 +126,11 @@
|
|||||||
<artifactId>shiro-core</artifactId>
|
<artifactId>shiro-core</artifactId>
|
||||||
<version>1.2.3</version>
|
<version>1.2.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun.openservices</groupId>
|
||||||
|
<artifactId>ons-client</artifactId>
|
||||||
|
<version>1.8.8.3.Final</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user