提交 3d6db1de authored 作者: luojie's avatar luojie

修复zara爬取价格问题

上级 ac0d6bca
......@@ -124,6 +124,8 @@ public class ZaraSpider implements IItemSpider {
///////////////////////// 获取商品尺码属性 ////////////////////
// String sizeNo = sizesObj.getString("sku");
String size = sizesObj.getString("name");
String[] s = size.split(" ");
size = s[0];
ProductProp productPropSize = new ProductProp();
productPropSize.setPropId(size);
......
......@@ -63,6 +63,11 @@ public class TbCfOrderController {
public Result payForOrder(@ApiParam("订单id") @PathVariable("orderId") String orderId, @ApiParam("支付token") @PathVariable("token") String token) {
return tbCfOrderService.payForOrder(orderId, token);
}
@ApiOperation("发起订单支付")
@PostMapping("/pay/{orderId}")
public Result rePayForOrder(@ApiParam("订单id") @PathVariable("orderId") String orderId) {
return tbCfOrderService.rePayForOrder(orderId);
}
@ApiOperation("根据订单id,查询物流详情")
@GetMapping("/express/{orderId}")
public Result queryOrderExpressInfo(@ApiParam("订单id") @PathVariable String orderId) throws IOException {
......
......@@ -172,4 +172,5 @@ public interface TbCfOrderService {
Result getDescriptionById(String descriptionId);
Result rePayForOrder(String orderId);
}
......@@ -478,6 +478,13 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
return result;
}
@Override
public Result rePayForOrder(String orderId) {
Result result=new Result();
TbCfOrderVo order=tbCfOrderDao.getOrders(orderId);
//order.
return null;
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论