refactor: remove unused tool name assignment in tool and shared_tool modules

--bug=1061891 --user=刘瑞斌 【工具】从工具商店创建的工具,修改名称后添加还是显示的默认名称 https://www.tapd.cn/62980211/s/1774595
This commit is contained in:
CaptainB 2025-09-17 12:57:54 +08:00
parent cf91734db5
commit b3073c8aad

View File

@ -840,7 +840,6 @@ class ToolSerializer(serializers.Serializer):
)
res = requests.get(self.data.get('download_url'), timeout=5)
tool_data = RestrictedUnpickler(io.BytesIO(res.content)).load().tool
tool.name = tool_data.get('name')
tool.desc = tool_data.get('desc')
tool.code = tool_data.get('code')
tool.input_field_list = tool_data.get('input_field_list', [])