Merge branch 'master' of http://120.27.238.55:7000/r/xc-mall
|  |  |  | 
|---|
|  |  |  | redisUtils.set(redisKey, token, 360000); | 
|---|
|  |  |  | Map<String, Object> authInfo = new HashMap<>(); | 
|---|
|  |  |  | authInfo.put("token", token); | 
|---|
|  |  |  | if ("dev".equals(active)) { | 
|---|
|  |  |  | authInfo.put("rasToken", generateAsaToken(token)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | authInfo.put("rasToken", generateAsaToken(token)); | 
|---|
|  |  |  | return new FebsResponse().success().data(authInfo); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (sku.getStock() < item.getCnt()) { | 
|---|
|  |  |  | throw new FebsException("库存不足"); | 
|---|
|  |  |  | throw new FebsException(sku.getSkuName() + "库存不足"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | MallGoods mallGoods = mallGoodsMapper.selectById(sku.getGoodsId()); | 
|---|
|  |  |  | if (MallGoods.ISSALE_STATUS_DISABLED.equals(mallGoods.getIsSale())) { | 
|---|
|  |  |  | throw new FebsException(mallGoods.getGoodsName() + "已下架"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | MallOrderItem orderItem = new MallOrderItem(); | 
|---|