Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
谢林臻
sun
Commits
3f1ee7a2
Commit
3f1ee7a2
authored
5 years ago
by
张英杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fdedc443
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
skin_check.py
api/skin_check.py
+4
-1
No files found.
api/skin_check.py
View file @
3f1ee7a2
...
...
@@ -94,6 +94,7 @@ class SkinCheckConfig(APIView):
:param text:
:return:
"""
text
=
text
.
encode
(
"utf-8"
)
.
decode
(
"utf-8"
)
return
text
.
replace
(
" "
,
""
)
def
_input_string_check
(
self
,
text
,
check_str
):
...
...
@@ -198,7 +199,9 @@ class SkinCheckConfig(APIView):
modify_data
.
append
(
_data
)
if
_raise_message
:
raise
Exception
(
u"{} 标点符号错误!请以英文逗号分隔"
.
format
(
_raise_message
))
return
{
"message"
:
u"{} 标点符号错误!请以英文逗号分隔"
.
format
(
_raise_message
),
}
info_logger
.
info
(
"skin_check config modify data: {}"
.
format
(
json
.
dumps
(
modify_data
)))
...
...
This diff is collapsed.
Click to expand it.
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