소스 검색

fix: tests

Yeuoly 10 달 전
부모
커밋
2da32e49d0
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      api/core/plugin/encrypt/__init__.py

+ 6 - 2
api/core/plugin/encrypt/__init__.py

@@ -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),
+            }