This commit is contained in:
zhangchenbiao
2023-05-24 15:23:50 +08:00
parent 799b6b8cf5
commit c50a9bb99b
16 changed files with 15 additions and 48 deletions

View File

@@ -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");

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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