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