瀏覽代碼

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

잉여개발기 (SPDV) 1 年之前
父節點
當前提交
a40905c80d
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 == {}:
         other_set = '{}'
     else:
-        other_set = orjson.dumps(other_set).decode('utf-8')
+        other_set = orjson.dumps(other_set)
 
     if platform.system() == 'Linux':
         if platform.machine() in ["AMD64", "x86_64"]:
@@ -156,7 +156,7 @@ async def python_to_golang(func_name, other_set = {}):
     if other_set == {}:
         other_set = '{}'
     else:
-        other_set = orjson.dumps(other_set).decode('utf-8')
+        other_set = orjson.dumps(other_set)
 
     if platform.system() == 'Linux':
         if platform.machine() in ["AMD64", "x86_64"]: