Browse Source

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

잉여개발기 (SPDV) 1 năm trước cách đây
mục cha
commit
a40905c80d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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"]: