|
@@ -644,7 +644,7 @@ public class WeixinServiceImpl implements WeixinService {
|
|
|
* @return
|
|
|
* */
|
|
|
@Override
|
|
|
- public String createStoreQrCode(Integer merchantId, Integer storeId, Integer width) {
|
|
|
+ public String createStoreQrCode(Integer merchantId, Integer storeId, Integer width) throws BusinessCheckException {
|
|
|
try {
|
|
|
String accessToken = getAccessToken(merchantId, true,true);
|
|
|
String url = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=" + accessToken;
|
|
@@ -681,8 +681,8 @@ public class WeixinServiceImpl implements WeixinService {
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("生成店铺二维码出错啦:{}", e.getMessage());
|
|
|
+ throw new BusinessCheckException("生成店铺二维码出错,请检查小程序配置");
|
|
|
}
|
|
|
- return "";
|
|
|
}
|
|
|
|
|
|
/**
|