Skip to content

Commit 9218cdf

Browse files
authored
Update flasktest.py
1 parent fa76e3b commit 9218cdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flasktest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def encrypt():
3737
encry_param = des_encrypt(param.strip("\n"))
3838
print(param)
3939
print(encry_param)
40-
return encry_param.strip("\n")
40+
return encry_param
4141

4242
@app.route('/decode',methods=["POST"])
4343
def decrypt():
4444
param = request.form.get('dataBody') # 获取 post 参数
4545
decrypt_param = des_decrypt(param.strip("\n"))
4646
print(param)
4747
print(decrypt_param)
48-
return decrypt_param.strip("\n")
48+
return decrypt_param
4949

5050
if __name__ == '__main__':
5151
app.debug = True # 设置调试模式,生产模式的时候要关掉debug

0 commit comments

Comments
 (0)