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.RestController;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @FileName: LoginController
|
||||
@@ -40,8 +42,10 @@ public class LoginController {
|
||||
String userId = "", corpId = "", appType = AppTypeEnum.FEI_SHU.getValue();
|
||||
try {
|
||||
String value = "code=" + code + "&appType=" + appType + "&appId=" + appId;
|
||||
//todo zcb
|
||||
JSONObject userInfo = isvHttpRequest.getUserIdByCode(value);
|
||||
if(Objects.isNull(userInfo)){
|
||||
throw new ServiceException(ErrorCodeEnum.LOGIN_ERROR);
|
||||
}
|
||||
log.info("userInfo:{}", JSONObject.toJSONString(userInfo));
|
||||
userId = userInfo.getString("openId");
|
||||
corpId = userInfo.getString("corpId");
|
||||
|
||||
@@ -33,8 +33,5 @@ mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
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.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
|
||||
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.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
|
||||
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.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
|
||||
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.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
|
||||
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.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
|
||||
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.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
|
||||
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.map-underscore-to-camel-case=true
|
||||
|
||||
com.alipay.sofa.rpc.registry.address=zookeeper://tzk.coolcollege.cn:2188
|
||||
com.alipay.sofa.rpc.bolt.port=30910
|
||||
|
||||
@@ -35,7 +35,4 @@ spring.mvc.async.request-timeout=60000
|
||||
mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
@@ -31,7 +31,4 @@ spring.mvc.async.request-timeout=60000
|
||||
mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
@@ -39,6 +39,3 @@ customize_sub_table_size=10
|
||||
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
@@ -31,7 +31,4 @@ spring.mvc.async.request-timeout=60000
|
||||
mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
@@ -31,7 +31,4 @@ spring.mvc.async.request-timeout=60000
|
||||
mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
@@ -31,7 +31,4 @@ spring.mvc.async.request-timeout=60000
|
||||
mybatis.mapper-locations=classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
mybatis.configuration.call-setters-on-nulls=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
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
Reference in New Issue
Block a user