Commit b05e842d authored by tanyang's avatar tanyang

Merge branch 'master' into V20230915

# Conflicts:
#	dsk-operate-ui/src/views/market/index.vue
#	dsk-operate-ui/vue.config.js
#	dsk-system/src/main/java/com/dsk/system/service/impl/ISysTenantServiceImpl.java
parents b4f33b30 f56a7db7
...@@ -70,7 +70,7 @@ spring: ...@@ -70,7 +70,7 @@ spring:
# 资源信息 # 资源信息
messages: messages:
# 国际化资源文件路径 # 国际化资源文件路径
basename: i18n/messages basename: i18n/messages_zh_CN
profiles: profiles:
active: @profiles.active@ active: @profiles.active@
# 文件上传 # 文件上传
...@@ -195,7 +195,7 @@ mybatis-plus: ...@@ -195,7 +195,7 @@ mybatis-plus:
# 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
# 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
# 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config: global-config:
# 是否打印 Logo banner # 是否打印 Logo banner
banner: true banner: true
......
...@@ -20,6 +20,7 @@ public class AddressUtils { ...@@ -20,6 +20,7 @@ public class AddressUtils {
public static final String UNKNOWN = "XX XX"; public static final String UNKNOWN = "XX XX";
public static String getRealAddressByIP(String ip) { public static String getRealAddressByIP(String ip) {
try {
if (StringUtils.isBlank(ip)) { if (StringUtils.isBlank(ip)) {
return UNKNOWN; return UNKNOWN;
} }
...@@ -29,5 +30,10 @@ public class AddressUtils { ...@@ -29,5 +30,10 @@ public class AddressUtils {
return "内网IP"; return "内网IP";
} }
return RegionUtils.getCityInfo(ip); return RegionUtils.getCityInfo(ip);
} catch (Exception e) {
log.error("IP地址异常 "+ip);
e.printStackTrace();
}
return null;
} }
} }
...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 数字化经营履约全生命链路管理系统 ...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 数字化经营履约全生命链路管理系统
ENV = 'production' ENV = 'production'
# 数字化经营履约全生命链路管理系统/生产环境 # 数字化经营履约全生命链路管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = 'https://szhapi.jiansheku.com/'
server server
{ {
listen 80; listen 80;
server_name hwszh.jiansheku.com szh.jiansheku.com; server_name hwszh.jiansheku.com szh.jiansheku.com szh-test.jiansheku.com;
index index.php index.html index.htm default.php default.htm default.html; index index.php index.html index.htm default.php default.htm default.html;
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
set_real_ip_from 100.125.0.0/16;
real_ip_header X-Forwarded-For;
access_log /var/log/nginx/szh.jiansheku.com.access.log; access_log /var/log/nginx/szh.jiansheku.com.access.log;
error_log /var/log/nginx/szh.jiansheku.com.error.log; error_log /var/log/nginx/szh.jiansheku.com.error.log;
...@@ -15,16 +16,6 @@ server ...@@ -15,16 +16,6 @@ server
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location /prod-api/ {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 后端服务地址
proxy_pass http://localhost:9098/;
}
location = /50x.html { location = /50x.html {
root html; root html;
} }
......
...@@ -180,7 +180,7 @@ export const constantRoutes = [ ...@@ -180,7 +180,7 @@ export const constantRoutes = [
children: [ children: [
{ {
path: '/company/:id', path: '/company/:id',
component: () => import('@/views/detail'), component: () => import('@/views/detail/party-b/index'),
name: 'Company', name: 'Company',
meta: { title: '企业详情' } meta: { title: '企业详情' }
} }
......
...@@ -34,8 +34,8 @@ module.exports = { ...@@ -34,8 +34,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://47.104.91.229:9099/prod-api`,//测试 // target: `http://47.104.91.229:9099/prod-api`,//测试
// target: `https://szhapi.jiansheku.com`,//线上 target: `https://szhapi.jiansheku.com`,//测试
// target: `http://122.9.160.122:9011`, //线上 // target: `http://122.9.160.122:9011`, //线上
// target: `http://192.168.0.165:9098`,//施 // target: `http://192.168.0.165:9098`,//施
// target: `http://192.168.60.6:9098`,//谭 // target: `http://192.168.60.6:9098`,//谭
......
...@@ -559,13 +559,13 @@ public class SysLoginService { ...@@ -559,13 +559,13 @@ public class SysLoginService {
LambdaQueryWrapper<SysUser> lqw = new LambdaQueryWrapper<SysUser>() LambdaQueryWrapper<SysUser> lqw = new LambdaQueryWrapper<SysUser>()
.select(SysUser::getUserName, SysUser::getStatus, SysUser::getTenantId) .select(SysUser::getUserName, SysUser::getStatus, SysUser::getTenantId)
.eq(SysUser::getPhonenumber, username) .eq(SysUser::getPhonenumber, username)
.orderByDesc(SysUser::getCreateTime); .orderByDesc(SysUser::getUserId);
sysUsers = userMapper.selectList(lqw); sysUsers = userMapper.selectList(lqw);
} else { } else {
LambdaQueryWrapper<SysUser> lqw = new LambdaQueryWrapper<SysUser>() LambdaQueryWrapper<SysUser> lqw = new LambdaQueryWrapper<SysUser>()
.select(SysUser::getUserName, SysUser::getStatus, SysUser::getTenantId) .select(SysUser::getUserName, SysUser::getStatus, SysUser::getTenantId)
.eq(SysUser::getUserName, username) .eq(SysUser::getUserName, username)
.orderByDesc(SysUser::getCreateTime); .orderByDesc(SysUser::getUserId);
sysUsers = userMapper.selectList(lqw); sysUsers = userMapper.selectList(lqw);
} }
return sysUsers; return sysUsers;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<id>prod</id> <id>prod</id>
<properties> <properties>
<profiles.active>prod</profiles.active> <profiles.active>prod</profiles.active>
<logging.level>warn</logging.level> <logging.level>debug</logging.level>
</properties> </properties>
</profile> </profile>
</profiles> </profiles>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment