Closed zjfjiayou closed 4 years ago
环境是用的docker dockerfile FROM python:3 WORKDIR /usr/src/app COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD [ "python", "./jdBuyMask.py" ]
执行命令 docker build -t jd . docker run -it --rm --name running-jd jd
刚提交了个代码。你试下,看看是不是商品的问题
好的,稍等
非常感觉,谢谢小哥,已赞
我也碰到了怎么解决呢
Traceback (most recent call last):
File "C:/Users/Masha/Downloads/Compressed/jdBuyMask-master_3/jdBuyMask-master/jdBuyMask.py", line 510, in
Traceback (most recent call last): File "C:/Users/Masha/Downloads/Compressed/jdBuyMask-master_3/jdBuyMask-master/jdBuyMask.py", line 510, in if buyMask(skuId): File "C:/Users/Masha/Downloads/Compressed/jdBuyMask-master_3/jdBuyMask-master/jdBuyMask.py", line 475, in buyMask risk_control = get_checkout_page_detail() File "C:/Users/Masha/Downloads/Compressed/jdBuyMask-master_3/jdBuyMask-master/jdBuyMask.py", line 348, in get_checkout_page_detail return risk_control UnboundLocalError: local variable 'risk_control' referenced before assignment
刚刚有个版本有点问题,还是不行的话加我qq
您好请问您qq是多少
您好请问您qq是多少
838143144
2020-02-05 13:01:56,324 ERROR: 4642656 添加到购物车失败 2020-02-05 13:01:57,016 ERROR: 下单页面数据解析异常:list index out of range Traceback (most recent call last): File "./jdBuyMask.py", line 493, in
if buyMask(skuId):
File "./jdBuyMask.py", line 459, in buyMask
risk_control = get_checkout_page_detail()
File "./jdBuyMask.py", line 345, in get_checkout_page_detail
return risk_control
UnboundLocalError: local variable 'risk_control' referenced before assignment