修改master依赖
This commit is contained in:
parent
bb524e9831
commit
c1362f563a
|
@ -45,7 +45,7 @@ savefile:
|
||||||
tomcatpath: /Users/apple/Desktop/log/local
|
tomcatpath: /Users/apple/Desktop/log/local
|
||||||
pluginpath: /Users/apple/Desktop/log/local
|
pluginpath: /Users/apple/Desktop/log/local
|
||||||
zt:
|
zt:
|
||||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
|
||||||
cbs8:
|
cbs8:
|
||||||
appId: 1P4AGrpz
|
appId: 1P4AGrpz
|
||||||
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||||
|
@ -59,4 +59,6 @@ cbs8:
|
||||||
#电子回单下载临时存放位置
|
#电子回单下载临时存放位置
|
||||||
elec_path: /Users/xiangerlin/Downloads/
|
elec_path: /Users/xiangerlin/Downloads/
|
||||||
OA:
|
OA:
|
||||||
data_source_code: yc_oa
|
data_source_code: yc_oa
|
||||||
|
server:
|
||||||
|
port: 10086
|
|
@ -85,7 +85,10 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
return BaseResult.getFailureMessageEntity("请输入用户名或密码");
|
return BaseResult.getFailureMessageEntity("请输入用户名或密码");
|
||||||
}
|
}
|
||||||
entity.setPassword(AESUtil.encrypt(entity.getLoginCode() + "-" + entity.getPassword()));
|
entity.setPassword(AESUtil.encrypt(entity.getLoginCode() + "-" + entity.getPassword()));
|
||||||
SysUserEntity sysUserEntity = sysUserDao.queryOne(entity);
|
SysUserEntity sysUserEntity = new SysUserEntity();
|
||||||
|
sysUserEntity.setLoginCode(entity.getLoginCode());
|
||||||
|
sysUserEntity.setPassword(entity.getPassword());
|
||||||
|
sysUserEntity = sysUserDao.queryOne(sysUserEntity);
|
||||||
if (sysUserEntity == null || sysUserEntity.getId() == null || "".equals(sysUserEntity.getId())) {
|
if (sysUserEntity == null || sysUserEntity.getId() == null || "".equals(sysUserEntity.getId())) {
|
||||||
return BaseResult.getFailureMessageEntity("用户名或密码错误");
|
return BaseResult.getFailureMessageEntity("用户名或密码错误");
|
||||||
}
|
}
|
||||||
|
@ -169,6 +172,11 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
public JsonResultEntity appDoLogin(JSONObject jsonObject) {
|
public JsonResultEntity appDoLogin(JSONObject jsonObject) {
|
||||||
//移动端类型
|
//移动端类型
|
||||||
JSONObject entity = getData("jsonStr", jsonObject, JSONObject.class);
|
JSONObject entity = getData("jsonStr", jsonObject, JSONObject.class);
|
||||||
|
logger.error(entity.toString());
|
||||||
|
//boolean f = true;
|
||||||
|
//if(f){
|
||||||
|
// return BaseResult.getFailureMessageEntity("cuowu",entity);
|
||||||
|
//}
|
||||||
//DD,weChat
|
//DD,weChat
|
||||||
String appType = entity.getString("appType");
|
String appType = entity.getString("appType");
|
||||||
String appId = entity.getString("appId");
|
String appId = entity.getString("appId");
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.hzya.frame.webapp.web.corsconfig;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
||||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 👻👻👻👻👻👻👻👻👻👻 gjh
|
||||||
|
* @version 1.0
|
||||||
|
* @content
|
||||||
|
* @date 2024-09-14 17:10
|
||||||
|
*/
|
||||||
|
@Configuration
|
||||||
|
public class CorsConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addCorsMappings(CorsRegistry registry) {
|
||||||
|
registry.addMapping("/**")
|
||||||
|
.allowedOrigins("*")
|
||||||
|
.allowedMethods("GET", "POST", "PUT", "DELETE")
|
||||||
|
.allowedHeaders("*")
|
||||||
|
.allowCredentials(false);
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue