zhouhui.jiang

update

...@@ -185,7 +185,11 @@ def create_waybill_d_with_id( ...@@ -185,7 +185,11 @@ def create_waybill_d_with_id(
185 extra = data.get('extra') or {} 185 extra = data.get('extra') or {}
186 waybill_id = extra.get('id') 186 waybill_id = extra.get('id')
187 if waybill_id is not None: 187 if waybill_id is not None:
188 - return waybill_id # 返回数字格式的运单ID 188 + # 返回包含 waybill_id 和 message 的JSON
189 + return json.dumps({
190 + "waybill_id": waybill_id,
191 + "message": "创建运单成功"
192 + }, ensure_ascii=False)
189 return f"❌ 创建失败: 响应中未找到运单ID" 193 return f"❌ 创建失败: 响应中未找到运单ID"
190 return f"❌ 创建失败: HTTP {response.status_code}, 错误信息: {response.text}" 194 return f"❌ 创建失败: HTTP {response.status_code}, 错误信息: {response.text}"
191 195
......