Commit 3f1ee7a2 authored by 张英杰's avatar 张英杰

fix

parent fdedc443
......@@ -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)))
......
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