20240115-ljl-multiPay
ljl 1 year ago
parent 3834ffd0e9
commit 8d2e6470c8

@ -94,6 +94,9 @@ public class ShopServiceImpl implements ShopService {
@Override @Override
public ShopBO getShopInfo(Long shopId) { public ShopBO getShopInfo(Long shopId) {
Shop shop = getDetailById(shopId); Shop shop = getDetailById(shopId);
if (shop == null) {
throw new RuntimeException("店铺不存在");
}
ShopBO shopBO = CommonTool.modelMapper(shop, ShopBO.class); ShopBO shopBO = CommonTool.modelMapper(shop, ShopBO.class);
shopBO.setShopAccessToken(getShopAccessTokenByShop(shop)); shopBO.setShopAccessToken(getShopAccessTokenByShop(shop));
return shopBO; return shopBO;

@ -22,12 +22,12 @@ mybatis.mapper-locations=classpath*:mapper/*.xml
mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
mybatis.configuration.map-underscore-to-camel-case=true mybatis.configuration.map-underscore-to-camel-case=true
#cloud.app.key=7290512081592305208 cloud.app.key=7290512081592305208
#cloud.app.secret=d21bf43e-c671-4fa5-b35a-762a9c775129 cloud.app.secret=d21bf43e-c671-4fa5-b35a-762a9c775129
# boe # boe
cloud.app.key=7296606199200499244 #cloud.app.key=7296606199200499244
cloud.app.secret=0063975e-7755-4d51-8255-ad163604456f #cloud.app.secret=0063975e-7755-4d51-8255-ad163604456f
#spring.redis.host=r-2zext1mz5bw1hsochrpd.redis.rds.aliyuncs.com #spring.redis.host=r-2zext1mz5bw1hsochrpd.redis.rds.aliyuncs.com
#spring.redis.port=6379 #spring.redis.port=6379

Loading…
Cancel
Save