Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
c3b5cb20
Commit
c3b5cb20
authored
Jun 10, 2020
by
若依
Committed by
Gitee
Jun 10, 2020
Browse files
!25 Live轻量级PR
Merge pull request !25 from Live/live
parents
7afc5acc
2daf89e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/public/robots.txt
0 → 100644
View file @
c3b5cb20
User-agent: *
Disallow: /
\ No newline at end of file
ruoyi-ui/vue.config.js
View file @
c3b5cb20
...
...
@@ -117,7 +117,11 @@ module.exports = {
}
}
})
config
.
optimization
.
runtimeChunk
(
'
single
'
)
config
.
optimization
.
runtimeChunk
(
'
single
'
),
{
from
:
path
.
resolve
(
__dirname
,
'
./public/robots.txt
'
),
//防爬虫文件
to
:
'
./
'
,
//到根目录下
}
}
)
}
...
...
ruoyi/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java
View file @
c3b5cb20
...
...
@@ -118,7 +118,7 @@ public class HttpUtils
StringBuilder
result
=
new
StringBuilder
();
try
{
String
urlNameString
=
url
+
"?"
+
param
;
String
urlNameString
=
url
;
log
.
info
(
"sendPost - {}"
,
urlNameString
);
URL
realUrl
=
new
URL
(
urlNameString
);
URLConnection
conn
=
realUrl
.
openConnection
();
...
...
ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java
View file @
c3b5cb20
...
...
@@ -40,7 +40,7 @@ public class IpUtils
{
ip
=
request
.
getRemoteAddr
();
}
ip
=
EscapeUtil
.
clean
(
ip
);
//清除Xss特殊字符
return
"0:0:0:0:0:0:0:1"
.
equals
(
ip
)
?
"127.0.0.1"
:
ip
;
}
...
...
ruoyi/src/main/java/com/ruoyi/project/tool/gen/util/GenUtils.java
View file @
c3b5cb20
...
...
@@ -58,11 +58,11 @@ public class GenUtils
{
column
.
setHtmlType
(
GenConstants
.
HTML_INPUT
);
// 如果是浮点型
// 如果是浮点型
统一用BigDecimal
String
[]
str
=
StringUtils
.
split
(
StringUtils
.
substringBetween
(
column
.
getColumnType
(),
"("
,
")"
),
","
);
if
(
str
!=
null
&&
str
.
length
==
2
&&
Integer
.
parseInt
(
str
[
1
])
>
0
)
{
column
.
setJavaType
(
GenConstants
.
TYPE_
DOUBLE
);
column
.
setJavaType
(
GenConstants
.
TYPE_
BIGDECIMAL
);
}
// 如果是整形
else
if
(
str
!=
null
&&
str
.
length
==
1
&&
Integer
.
parseInt
(
str
[
0
])
<=
10
)
...
...
Write
Preview
Supports
Markdown
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