Showing
2 changed files
with
2 additions
and
6 deletions
| ... | @@ -136,8 +136,6 @@ def create_waybill_d(consignmentCode: str, Authorization: str = None) -> str: | ... | @@ -136,8 +136,6 @@ def create_waybill_d(consignmentCode: str, Authorization: str = None) -> str: |
| 136 | def create_waybill_d_with_id( | 136 | def create_waybill_d_with_id( |
| 137 | consignmentCode: str, | 137 | consignmentCode: str, |
| 138 | consignmentId: str, | 138 | consignmentId: str, |
| 139 | - loginName: str, | ||
| 140 | - userId: int, | ||
| 141 | Authorization: str = None, | 139 | Authorization: str = None, |
| 142 | ) -> str: | 140 | ) -> str: |
| 143 | """根据运单ID及运单号创建D类运单 | 141 | """根据运单ID及运单号创建D类运单 |
| ... | @@ -145,8 +143,6 @@ def create_waybill_d_with_id( | ... | @@ -145,8 +143,6 @@ def create_waybill_d_with_id( |
| 145 | Args: | 143 | Args: |
| 146 | consignmentCode: 运单号(必填) | 144 | consignmentCode: 运单号(必填) |
| 147 | consignmentId: 运单ID(必填) | 145 | consignmentId: 运单ID(必填) |
| 148 | - loginName: 登录名(必填) | ||
| 149 | - userId: 用户ID(必填) | ||
| 150 | Authorization: 授权令牌,如果提供则使用该值,否则使用 API_CONFIG 中的默认值 | 146 | Authorization: 授权令牌,如果提供则使用该值,否则使用 API_CONFIG 中的默认值 |
| 151 | 147 | ||
| 152 | Returns: | 148 | Returns: |
| ... | @@ -160,8 +156,8 @@ def create_waybill_d_with_id( | ... | @@ -160,8 +156,8 @@ def create_waybill_d_with_id( |
| 160 | "consignmentCode": consignmentCode, | 156 | "consignmentCode": consignmentCode, |
| 161 | "consignmentId": consignmentId, | 157 | "consignmentId": consignmentId, |
| 162 | "isAIRecognition": 1, # 写死为1 | 158 | "isAIRecognition": 1, # 写死为1 |
| 163 | - "loginName": loginName, | 159 | + "loginName": "CL1", # 硬编码 |
| 164 | - "userId": userId | 160 | + "userId": 73768 # 硬编码 |
| 165 | } | 161 | } |
| 166 | 162 | ||
| 167 | # 构建 headers,优先使用传入的 Authorization | 163 | # 构建 headers,优先使用传入的 Authorization | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment