Răsfoiți Sursa

파이프 통신은 그냥 바이트 써도 잘 작동하는 듯

잉여개발기 (SPDV) 1 an în urmă
părinte
comite
a40905c80d
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -117,7 +117,7 @@ def python_to_golang_sync(func_name, other_set = {}):
     if other_set == {}:
     if other_set == {}:
         other_set = '{}'
         other_set = '{}'
     else:
     else:
-        other_set = orjson.dumps(other_set).decode('utf-8')
+        other_set = orjson.dumps(other_set)
 
 
     if platform.system() == 'Linux':
     if platform.system() == 'Linux':
         if platform.machine() in ["AMD64", "x86_64"]:
         if platform.machine() in ["AMD64", "x86_64"]:
@@ -156,7 +156,7 @@ async def python_to_golang(func_name, other_set = {}):
     if other_set == {}:
     if other_set == {}:
         other_set = '{}'
         other_set = '{}'
     else:
     else:
-        other_set = orjson.dumps(other_set).decode('utf-8')
+        other_set = orjson.dumps(other_set)
 
 
     if platform.system() == 'Linux':
     if platform.system() == 'Linux':
         if platform.machine() in ["AMD64", "x86_64"]:
         if platform.machine() in ["AMD64", "x86_64"]: