Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
f1349d0e
Commit
f1349d0e
authored
Oct 27, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V20230915' of
http://192.168.60.201/root/dsk-operate-sys
into V20230915
parents
4020dd31
fa6f8223
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
29 deletions
+26
-29
application.yml
dsk-admin/src/main/resources/application.yml
+2
-2
AddressUtils.java
...n/src/main/java/com/dsk/common/utils/ip/AddressUtils.java
+14
-8
.env.production
dsk-operate-ui/.env.production
+1
-1
operate.conf
dsk-operate-ui/operate.conf
+3
-12
index.vue
dsk-operate-ui/src/layout/components/TagsView/index.vue
+1
-1
vue.config.js
dsk-operate-ui/vue.config.js
+2
-2
SysLoginService.java
...src/main/java/com/dsk/system/service/SysLoginService.java
+2
-2
pom.xml
pom.xml
+1
-1
No files found.
dsk-admin/src/main/resources/application.yml
View file @
f1349d0e
...
...
@@ -70,7 +70,7 @@ spring:
# 资源信息
messages
:
# 国际化资源文件路径
basename
:
i18n/messages
basename
:
i18n/messages
_zh_CN
profiles
:
active
:
@
profiles.active@
# 文件上传
...
...
@@ -195,7 +195,7 @@ mybatis-plus:
# 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
# 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
# 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
logImpl
:
org.apache.ibatis.logging.
nologging.NoLogging
Impl
logImpl
:
org.apache.ibatis.logging.
stdout.StdOut
Impl
global-config
:
# 是否打印 Logo banner
banner
:
true
...
...
dsk-common/src/main/java/com/dsk/common/utils/ip/AddressUtils.java
View file @
f1349d0e
...
...
@@ -20,6 +20,7 @@ public class AddressUtils {
public
static
final
String
UNKNOWN
=
"XX XX"
;
public
static
String
getRealAddressByIP
(
String
ip
)
{
try
{
if
(
StringUtils
.
isBlank
(
ip
))
{
return
UNKNOWN
;
}
...
...
@@ -29,5 +30,10 @@ public class AddressUtils {
return
"内网IP"
;
}
return
RegionUtils
.
getCityInfo
(
ip
);
}
catch
(
Exception
e
)
{
log
.
error
(
"IP地址异常 "
+
ip
);
e
.
printStackTrace
();
}
return
null
;
}
}
dsk-operate-ui/.env.production
View file @
f1349d0e
...
...
@@ -5,4 +5,4 @@ VUE_APP_TITLE = 数字化经营履约全生命链路管理系统
ENV = 'production'
# 数字化经营履约全生命链路管理系统/生产环境
VUE_APP_BASE_API = '
/prod-api
'
VUE_APP_BASE_API = '
https://szhapi.jiansheku.com/
'
dsk-operate-ui/operate.conf
View file @
f1349d0e
server
{
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
;
error_page
500
502
503
504
/
50
x
.
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
;
error_log
/
var
/
log
/
nginx
/
szh
.
jiansheku
.
com
.
error
.
log
;
...
...
@@ -15,16 +16,6 @@ server
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
= /
50
x
.
html
{
root
html
;
}
...
...
dsk-operate-ui/src/layout/components/TagsView/index.vue
View file @
f1349d0e
...
...
@@ -166,7 +166,7 @@ export default {
}
},
isActive
(
route
)
{
return
route
.
path
===
this
.
$route
.
path
return
route
.
path
.
split
(
"?"
)[
0
]
===
this
.
$route
.
path
},
isAffix
(
tag
)
{
return
tag
.
meta
&&
tag
.
meta
.
affix
...
...
dsk-operate-ui/vue.config.js
View file @
f1349d0e
...
...
@@ -34,8 +34,8 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://47.104.91.229:9099/prod-api`
,
//测试
// target: `https://szhapi.jiansheku.com`,//线上
//
target: `http://47.104.91.229:9099/prod-api`,//测试
target
:
`https://szhapi.jiansheku.com`
,
//测试
// target: `http://122.9.160.122:9011`, //线上
// target: `http://192.168.0.165:9098`,//施
// target: `http://192.168.60.6:9098`,//谭
...
...
dsk-system/src/main/java/com/dsk/system/service/SysLoginService.java
View file @
f1349d0e
...
...
@@ -559,13 +559,13 @@ public class SysLoginService {
LambdaQueryWrapper
<
SysUser
>
lqw
=
new
LambdaQueryWrapper
<
SysUser
>()
.
select
(
SysUser:
:
getUserName
,
SysUser:
:
getStatus
,
SysUser:
:
getTenantId
)
.
eq
(
SysUser:
:
getPhonenumber
,
username
)
.
orderByDesc
(
SysUser:
:
get
CreateTime
);
.
orderByDesc
(
SysUser:
:
get
UserId
);
sysUsers
=
userMapper
.
selectList
(
lqw
);
}
else
{
LambdaQueryWrapper
<
SysUser
>
lqw
=
new
LambdaQueryWrapper
<
SysUser
>()
.
select
(
SysUser:
:
getUserName
,
SysUser:
:
getStatus
,
SysUser:
:
getTenantId
)
.
eq
(
SysUser:
:
getUserName
,
username
)
.
orderByDesc
(
SysUser:
:
get
CreateTime
);
.
orderByDesc
(
SysUser:
:
get
UserId
);
sysUsers
=
userMapper
.
selectList
(
lqw
);
}
return
sysUsers
;
...
...
pom.xml
View file @
f1349d0e
...
...
@@ -75,7 +75,7 @@
<id>
prod
</id>
<properties>
<profiles.active>
prod
</profiles.active>
<logging.level>
warn
</logging.level>
<logging.level>
debug
</logging.level>
</properties>
</profile>
</profiles>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment