修复自动创建分享图空指针BUG

This commit is contained in:
Menethil
2018-08-01 18:01:15 +08:00
parent 4992cc1afb
commit 1af956381d

View File

@@ -193,6 +193,11 @@ public class AdminGoodsController {
goodsService.add(goods);
//将生成的分享图片地址写入数据库
qCodeService.createGoodShareImage(goods.getId().toString(), goods.getPicUrl(), goods.getName());
goods.setShareUrl(qCodeService.getShareImageUrl(goods.getId().toString()));
goodsService.updateById(goods);
// 商品规格表litemall_goods_specification
Map<String, Integer> specIds = new HashMap<>();
for (LitemallGoodsSpecification specification : specifications) {