qrpa 1.0.46__py3-none-any.whl → 1.0.48__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/shein_lib.py CHANGED
@@ -174,10 +174,14 @@ class SheinLib:
174
174
  # 在这里添加新字段
175
175
  # 示例:添加一个"status"字段,值为"processed"
176
176
  supplier_sku = detail.get('supplierSku')
177
- if self.bridge.get_sku_supplier(supplier_sku) != '-':
178
- detail['erp_supplier_name'] = self.bridge.get_sku_supplier(supplier_sku)
179
- if self.bridge.get_sku_cost(supplier_sku) != '-':
180
- detail['erp_cost_price'] = self.bridge.get_sku_cost(supplier_sku)
177
+ erp_supplier_name = self.bridge.get_sku_supplier(supplier_sku, self.config.erp_source)
178
+ log(self.config.erp_source, supplier_sku, erp_supplier_name)
179
+ if erp_supplier_name != '-':
180
+ detail['erp_supplier_name'] = erp_supplier_name
181
+ erp_cost_price = self.bridge.get_sku_cost(supplier_sku, self.config.erp_source)
182
+ log(self.config.erp_source, supplier_sku, erp_cost_price)
183
+ if erp_cost_price != '-':
184
+ detail['erp_cost_price'] = erp_cost_price
181
185
 
182
186
  log(list_item)
183
187
  cache_file = f'{self.config.auto_dir}/shein/cache/shein_return_order_box_detail_{returnOrderId}.json'
@@ -226,6 +230,7 @@ class SheinLib:
226
230
  item['report_url'] = ''
227
231
  item['store_username'] = self.store_username
228
232
  item['store_name'] = self.store_name
233
+ item['store_manager'] = self.config.shein_store_manager.get(str(self.store_username).lower())
229
234
  if has_valid_package and len(return_box_detail) > 0:
230
235
 
231
236
  if int(item['returnScrapType']) == 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.46
3
+ Version: 1.0.48
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -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=Xa6WuUD7OGm5A6p5WsPWmdovd4eYto56CWOgQwfvI3c,107971
14
+ qrpa/shein_lib.py,sha256=X0i1PthvuC4vZ1UBa4KHTCi-Zs9cS0t6urO4SsWnZNQ,108366
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=9F2AfROvbUiEDizr9xCc5hlvG6USa5gFGiZC7VPWVo4,18365
@@ -23,7 +23,7 @@ qrpa/time_utils_example.py,sha256=shHOXKKF3QSzb0SHsNc34M61wEkkLuM30U9X1THKNS8,80
23
23
  qrpa/wxwork.py,sha256=gIytG19DZ5g7Tsl0-W3EbjfSnpIqZw-ua24gcB78YEg,11264
24
24
  qrpa/mysql_module/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  qrpa/mysql_module/shein_return_order_model.py,sha256=oKWr5Q-8LxKO7gLih26MUjD3GqC-C9eH8menVNGoRgw,26010
26
- qrpa-1.0.46.dist-info/METADATA,sha256=4TJorba9oBb2aO9O8MVe742n92PbaCYl69ui3aABh2o,231
27
- qrpa-1.0.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- qrpa-1.0.46.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
- qrpa-1.0.46.dist-info/RECORD,,
26
+ qrpa-1.0.48.dist-info/METADATA,sha256=mlfyslq2f_T0c4neYXq4UkiN6f2Xx19Ai2zxvhA2JN4,231
27
+ qrpa-1.0.48.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ qrpa-1.0.48.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
+ qrpa-1.0.48.dist-info/RECORD,,
File without changes