修改master依赖

This commit is contained in:
lvleigang 2024-09-24 15:22:55 +08:00
parent bb524e9831
commit c1362f563a
9 changed files with 37 additions and 3 deletions

View File

@ -45,7 +45,7 @@ savefile:
tomcatpath: /Users/apple/Desktop/log/local
pluginpath: /Users/apple/Desktop/log/local
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
@ -59,4 +59,6 @@ cbs8:
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
data_source_code: yc_oa
server:
port: 10086

View File

@ -85,7 +85,10 @@ public class LoginServiceImpl implements ILoginService {
return BaseResult.getFailureMessageEntity("请输入用户名或密码");
}
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())) {
return BaseResult.getFailureMessageEntity("用户名或密码错误");
}
@ -169,6 +172,11 @@ public class LoginServiceImpl implements ILoginService {
public JsonResultEntity appDoLogin(JSONObject jsonObject) {
//移动端类型
JSONObject entity = getData("jsonStr", jsonObject, JSONObject.class);
logger.error(entity.toString());
//boolean f = true;
//if(f){
// return BaseResult.getFailureMessageEntity("cuowu",entity);
//}
//DD,weChat
String appType = entity.getString("appType");
String appId = entity.getString("appId");

View File

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