mirror of https://github.com/langgenius/dify.git
fix: tests
This commit is contained in:
parent
1837692a66
commit
2da32e49d0
|
|
@ -17,6 +17,10 @@ class PluginEncrypter:
|
|||
)
|
||||
|
||||
if payload.opt == "encrypt":
|
||||
return encrypter.encrypt(payload.data)
|
||||
return {
|
||||
"data": encrypter.encrypt(payload.data),
|
||||
}
|
||||
else:
|
||||
return encrypter.decrypt(payload.data)
|
||||
return {
|
||||
"data": encrypter.decrypt(payload.data),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue