qrpa 1.0.52__py3-none-any.whl → 1.0.54__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 qrpa might be problematic. Click here for more details.
- qrpa/mysql_module/shein_return_order_model.py +3 -0
- qrpa/shein_lib.py +14 -0
- {qrpa-1.0.52.dist-info → qrpa-1.0.54.dist-info}/METADATA +1 -1
- {qrpa-1.0.52.dist-info → qrpa-1.0.54.dist-info}/RECORD +6 -6
- {qrpa-1.0.52.dist-info → qrpa-1.0.54.dist-info}/WHEEL +0 -0
- {qrpa-1.0.52.dist-info → qrpa-1.0.54.dist-info}/top_level.txt +0 -0
|
@@ -77,6 +77,7 @@ class SheinReturnOrder(Base):
|
|
|
77
77
|
return_reason_type = Column(Integer, nullable=True, comment='退货原因类型')
|
|
78
78
|
return_reason_type_name = Column(String(100), nullable=True, comment='退货原因类型名称')
|
|
79
79
|
return_reason = Column(Text, nullable=True, comment='退货原因')
|
|
80
|
+
reject_pic_url_list = Column(JSON, nullable=True, comment='拒绝图片URL列表')
|
|
80
81
|
|
|
81
82
|
# 商品信息
|
|
82
83
|
skc_name_list = Column(JSON, nullable=True, comment='SKC名称列表')
|
|
@@ -310,6 +311,7 @@ class SheinReturnOrderManager:
|
|
|
310
311
|
return_reason_type=data.get('returnReasonType'),
|
|
311
312
|
return_reason_type_name=data.get('returnReasonTypeName'),
|
|
312
313
|
return_reason=data.get('returnReason'),
|
|
314
|
+
reject_pic_url_list=data.get('rejectPicUrlList'),
|
|
313
315
|
skc_name_list=data.get('skcNameList'),
|
|
314
316
|
supplier_code_list=data.get('supplierCodeList'),
|
|
315
317
|
goods_thumb=data.get('goodsThumb'),
|
|
@@ -379,6 +381,7 @@ class SheinReturnOrderManager:
|
|
|
379
381
|
existing_order.return_reason_type = data.get('returnReasonType')
|
|
380
382
|
existing_order.return_reason_type_name = data.get('returnReasonTypeName')
|
|
381
383
|
existing_order.return_reason = data.get('returnReason')
|
|
384
|
+
existing_order.reject_pic_url_list = data.get('rejectPicUrlList'),
|
|
382
385
|
existing_order.skc_name_list = data.get('skcNameList')
|
|
383
386
|
existing_order.supplier_code_list = data.get('supplierCodeList')
|
|
384
387
|
existing_order.goods_thumb = data.get('goodsThumb')
|
qrpa/shein_lib.py
CHANGED
|
@@ -63,6 +63,20 @@ class SheinLib:
|
|
|
63
63
|
time.sleep(5)
|
|
64
64
|
wait_count += 1
|
|
65
65
|
|
|
66
|
+
if web_page.locator('//div[contains(text(),"同意签署协议")]').count() > 0:
|
|
67
|
+
while web_page.locator('//div[contains(text(),"同意签署协议")]').count() == 0:
|
|
68
|
+
log('等待协议内容出现')
|
|
69
|
+
web_page.wait_for_timeout(1000)
|
|
70
|
+
|
|
71
|
+
if web_page.locator('//div[contains(text(),"同意签署协议")]').count() > 0:
|
|
72
|
+
log('检测到同意签署协议')
|
|
73
|
+
web_page.wait_for_timeout(1000)
|
|
74
|
+
log('点击同意复选框')
|
|
75
|
+
web_page.locator('//i[@class="so-checkinput-indicator so-checkinput-checkbox"]').click()
|
|
76
|
+
web_page.wait_for_timeout(1000)
|
|
77
|
+
log('点击同意按钮')
|
|
78
|
+
web_page.locator('//button[span[text()="同意"]]').click()
|
|
79
|
+
|
|
66
80
|
if web_page.locator('//input[@name="username"]').is_visible():
|
|
67
81
|
log("用户名输入框可见 等待5秒点击'登录'按钮", self.store_username, self.store_name)
|
|
68
82
|
web_page.wait_for_timeout(5000)
|
|
@@ -11,7 +11,7 @@ qrpa/fun_web.py,sha256=F6cxwwOxB8twg2XK73oAvKla0FqpwDYJiM37CWmFwXo,6322
|
|
|
11
11
|
qrpa/fun_win.py,sha256=-LnTeocdTt72NVH6VgLdpAT9_C5oV9okeudXG6CftMA,8034
|
|
12
12
|
qrpa/shein_daily_report_model.py,sha256=H8oZmIN5Pyqe306W1_xuz87lOqLQ_LI5RjXbaxDkIzE,12589
|
|
13
13
|
qrpa/shein_excel.py,sha256=7dWDKP5JlD_2sb3Uv3JK_VJvppGwidsP3UAyPA89Ga8,115472
|
|
14
|
-
qrpa/shein_lib.py,sha256=
|
|
14
|
+
qrpa/shein_lib.py,sha256=0Yx9rFj1BwZe-pms1CV5SFPRs0u8gFrfi3laemNgNrU,109692
|
|
15
15
|
qrpa/shein_mysql.py,sha256=MGPJsz13evsLygZWhmitpPzUswiTKZ91VFvr8KA0M40,750
|
|
16
16
|
qrpa/shein_sqlite.py,sha256=ZQwD0Gz81q9WY7tY2HMEYvSF9r3N_G_Aur3bYfST9WY,5707
|
|
17
17
|
qrpa/shein_ziniao.py,sha256=kAOirjawPf-VxBxHFNpdDHCN2zL-O1U-2xybpmt34Xs,18692
|
|
@@ -22,8 +22,8 @@ qrpa/time_utils.py,sha256=ef0hhbN_6b-gcnz5ETIVOoxemIMvcxGVGGIRnHnGaBo,29564
|
|
|
22
22
|
qrpa/time_utils_example.py,sha256=shHOXKKF3QSzb0SHsNc34M61wEkkLuM30U9X1THKNS8,8053
|
|
23
23
|
qrpa/wxwork.py,sha256=gIytG19DZ5g7Tsl0-W3EbjfSnpIqZw-ua24gcB78YEg,11264
|
|
24
24
|
qrpa/mysql_module/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
qrpa/mysql_module/shein_return_order_model.py,sha256=
|
|
26
|
-
qrpa-1.0.
|
|
27
|
-
qrpa-1.0.
|
|
28
|
-
qrpa-1.0.
|
|
29
|
-
qrpa-1.0.
|
|
25
|
+
qrpa/mysql_module/shein_return_order_model.py,sha256=zvEQBVODpxQXWveUAF5z-be-DVI3WlF8UgvmwCTWP7o,26237
|
|
26
|
+
qrpa-1.0.54.dist-info/METADATA,sha256=I0C9uc6qfj0ei6vjH6VHmHY1w6tsP2mYsbHhvgoF_wU,231
|
|
27
|
+
qrpa-1.0.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
qrpa-1.0.54.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
|
|
29
|
+
qrpa-1.0.54.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|