Commit 484e4bb4 by 徐高华

log

parent e22204a5
......@@ -163,7 +163,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
Map<String, String> remarkMap = new HashMap<>();
if (null == link) {
log.error("链接记录不存,linkShortCode={}", linkShortCode);
return ServiceResponse.failure(HaoBanErrCode.ERR_OTHER.getCode(), "链接记录不存");
return ServiceResponse.failure(HaoBanErrCode.ERR_OTHER.getCode(), "无效的链接");
}
// 查询页面
retDTO.setPageId(link.getPageId());
......@@ -179,13 +179,15 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseService.selectById(wxEnterpriseId);
if (wxEnterpriseDTO == null) {
log.error("未查询到微信企业,id={}", wxEnterpriseId);
return ServiceResponse.failure(HaoBanErrCode.ERR_OTHER.getCode(), "未查到微信企业");
return ServiceResponse.failure(HaoBanErrCode.ERR_OTHER.getCode(), "未查到微信企业");
}
// 判断导购是否有活码,如果没有返回错误
if (StringUtils.isNotBlank(inClerkId)) {
hm = this.getHmFromClerk(inClerkId, wxEnterpriseId);
if (null == hm) {
return ServiceResponse.failure(HaoBanErrCode.ERR_OTHER.getCode(), "导购活码不存在");
remarkMap.put("reason","无任何导购活码");
retDTO.setRemarkMap(remarkMap);
return ServiceResponse.success(retDTO) ;
}
}
// 直接返回门店的导购活码,如果没有返回错误
......@@ -378,7 +380,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if (!addResp.isSuccess()) {
remarkMap.put("sm", "创建动态活码失败,取单人活码");
if (StringUtils.isBlank(hm.getWxQrcode())) {
return ServiceResponse.failure(HaoBanErrCode.ERR_OTHER.getCode(), "导购活码不存在");
remarkMap.put("reason","无任何导购活码");
retDTO.setRemarkMap(remarkMap);
return ServiceResponse.success(retDTO) ;
}
retDTO.setHmQrcode(hm.getWxQrcode());
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment