Showing
2 changed files
with
18 additions
and
0 deletions
| ... | @@ -170,6 +170,24 @@ def create_waybill_d(consignmentCode: str, Authorization: str = None) -> str: | ... | @@ -170,6 +170,24 @@ def create_waybill_d(consignmentCode: str, Authorization: str = None) -> str: |
| 170 | return _create_error_response(f"创建运单失败: {str(e)}", consignmentCode) | 170 | return _create_error_response(f"创建运单失败: {str(e)}", consignmentCode) |
| 171 | 171 | ||
| 172 | 172 | ||
| 173 | +def create_waybill_c(consignmentCode: str, Authorization: str = None) -> str: | ||
| 174 | + """根据运单号创建C类运单 | ||
| 175 | + | ||
| 176 | + Args: | ||
| 177 | + consignmentCode: 运单号(必填) | ||
| 178 | + Authorization: 授权令牌,如果提供则使用该值,否则使用 API_CONFIG 中的默认值 | ||
| 179 | + | ||
| 180 | + Returns: | ||
| 181 | + 创建结果信息(JSON字符串),包含: | ||
| 182 | + - message: 创建结果描述 | ||
| 183 | + """ | ||
| 184 | + # 暂时不支持AI创建C类运单 | ||
| 185 | + result_data = { | ||
| 186 | + "message": "暂不支持AI创建" | ||
| 187 | + } | ||
| 188 | + return json.dumps(result_data, ensure_ascii=False, indent=2) | ||
| 189 | + | ||
| 190 | + | ||
| 173 | def create_waybill_d_with_id( | 191 | def create_waybill_d_with_id( |
| 174 | consignmentCode: str, | 192 | consignmentCode: str, |
| 175 | consignmentId: str, | 193 | consignmentId: str, | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment