mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 14:38:06 +08:00
fix: tests
This commit is contained in:
@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user