ey-commerce-lib 1.0.1__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ey-commerce-lib might be problematic. Click here for more details.
|
@@ -165,9 +165,9 @@ def list_order_base_by_html(html_str: str) -> list[dict]:
|
|
|
165
165
|
logistics_info['logistics'] = logistics
|
|
166
166
|
# 状态
|
|
167
167
|
if has_logistics:
|
|
168
|
-
status = order_first_element.xpath('.//td[7]/text()')
|
|
168
|
+
status = get_str_list_first_not_blank_or_none(order_first_element.xpath('.//td[7]/text()'))
|
|
169
169
|
else:
|
|
170
|
-
status = order_first_element.xpath('.//td[6]/text()')
|
|
170
|
+
status = get_str_list_first_not_blank_or_none(order_first_element.xpath('.//td[6]/text()'))
|
|
171
171
|
# 整理订单
|
|
172
172
|
if len(order_element_list) > 1:
|
|
173
173
|
# 合并单
|
|
@@ -201,9 +201,11 @@ def list_order_rule(html_str: str):
|
|
|
201
201
|
for rule_element in rule_element_list:
|
|
202
202
|
rule_id = rule_element.xpath('./td[1]/input/@data-id')[0]
|
|
203
203
|
rule_name = rule_element.xpath('./td[2]/text()')[0]
|
|
204
|
+
status = rule_element.xpath('./td[5]/span/text()')[0]
|
|
204
205
|
rule_list.append({
|
|
205
206
|
'rule_id': rule_id,
|
|
206
|
-
'rule_name': rule_name
|
|
207
|
+
'rule_name': rule_name,
|
|
208
|
+
'status': status
|
|
207
209
|
})
|
|
208
210
|
return rule_list
|
|
209
211
|
|
|
@@ -9,7 +9,7 @@ ey_commerce_lib/dxm/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
9
9
|
ey_commerce_lib/dxm/exception/common.py,sha256=DM5vItHdZCGK2Piqp2S5TFxPm3pioMzzlV-1RTxty00,159
|
|
10
10
|
ey_commerce_lib/dxm/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
ey_commerce_lib/dxm/parser/common.py,sha256=bJcP6ZQd0hNeZpEU-8_nN_2AKB69WufKF_JKXtKYZqA,2425
|
|
12
|
-
ey_commerce_lib/dxm/parser/order.py,sha256=
|
|
12
|
+
ey_commerce_lib/dxm/parser/order.py,sha256=5t_ie5nkmhZdDC7NBOhIkNxRYHTmlZCxs4Y6TseCp88,16542
|
|
13
13
|
ey_commerce_lib/dxm/parser/purchase.py,sha256=gBHpIMPPgOZXdU6RIU_a8NogjtzPphCtcLmRauh8r-s,2206
|
|
14
14
|
ey_commerce_lib/dxm/parser/warehouse.py,sha256=LfmqVixV5IcnPvr6Ma4XYoWUdXixQ16xzPP07bJrWb0,3192
|
|
15
15
|
ey_commerce_lib/dxm/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -20,6 +20,6 @@ ey_commerce_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
20
20
|
ey_commerce_lib/utils/dxm.py,sha256=jVNltK_Pm_yMzXReD0Aw5VW6kzIZ5Bn23RucS0DKBI0,1196
|
|
21
21
|
ey_commerce_lib/utils/list_util.py,sha256=R1w7B1m3sEXr38zSHWp-15C3xAs5ykYCCpvwmnRW4xs,545
|
|
22
22
|
ey_commerce_lib/utils/str.py,sha256=939xE0y8U7KEWjwbEezMlaWJNBsfb2BSb-dBpYbOD8Q,138
|
|
23
|
-
ey_commerce_lib-1.0.
|
|
24
|
-
ey_commerce_lib-1.0.
|
|
25
|
-
ey_commerce_lib-1.0.
|
|
23
|
+
ey_commerce_lib-1.0.3.dist-info/METADATA,sha256=eOozemj6uuIs4vM4wkUR4BV0opyqDG7enEzoO02QRl0,326
|
|
24
|
+
ey_commerce_lib-1.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
25
|
+
ey_commerce_lib-1.0.3.dist-info/RECORD,,
|
|
File without changes
|