Commit d31a74e5 by 徐高华

log

parent a9d11d7e
...@@ -240,9 +240,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService { ...@@ -240,9 +240,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if (null == hm && StringUtils.isNotBlank(mainStoreId)) { if (null == hm && StringUtils.isNotBlank(mainStoreId)) {
hm = this.getHmFormStore(wxEnterpriseId, mainStoreId, fwStore.getDz(), fwStore.getDy()); hm = this.getHmFormStore(wxEnterpriseId, mainStoreId, fwStore.getDz(), fwStore.getDy());
} }
} if(null != hm) {
if(null != hm) { retDTO.setSm("会员主门店活码");
retDTO.setSm("会员主门店活码"); }
} }
// 协管门店 // 协管门店
List<MemberStoreClerkDataDTO> list = member.getStoreClerkRel(); List<MemberStoreClerkDataDTO> list = member.getStoreClerkRel();
...@@ -281,9 +281,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService { ...@@ -281,9 +281,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
} }
} }
} }
} if(null != hm) {
if(null != hm) { retDTO.setSm("会员协管活码");
retDTO.setSm("会员协管活码"); }
} }
} }
} }
...@@ -310,7 +310,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService { ...@@ -310,7 +310,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
} }
} }
if (null != hm) { if (null != hm) {
log.info("获取单人活码={}",JSON.toJSONString(hm)); log.info("获取单人活码={}",JSON.toJSONString(hm));
// 判断是否已经是好友 // 判断是否已经是好友
boolean isFriend = false; boolean isFriend = false;
if (null != memberId) { if (null != memberId) {
...@@ -321,6 +321,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService { ...@@ -321,6 +321,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
isFriend = true; isFriend = true;
log.info("已经是好友,staffid={},memberId={}", staffId, memberId); log.info("已经是好友,staffid={},memberId={}", staffId, memberId);
retDTO.setHmQrcode(hm.getWxQrcode()); retDTO.setHmQrcode(hm.getWxQrcode());
retDTO.setSm("老好友,取单人活码");
} }
} }
...@@ -333,8 +334,10 @@ public class HmLinkApiServiceImpl implements HmLinkApiService { ...@@ -333,8 +334,10 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if (null != dthmKey) { if (null != dthmKey) {
ServiceResponse<String> addResp = this.addQrcode(hm, dthmKey, wxEnterpriseDTO.getCorpid(), retDTO); ServiceResponse<String> addResp = this.addQrcode(hm, dthmKey, wxEnterpriseDTO.getCorpid(), retDTO);
if (!addResp.isSuccess()) { if (!addResp.isSuccess()) {
retDTO.setSm("创建动态活码失败,取单人活码");
retDTO.setHmQrcode(hm.getWxQrcode()); retDTO.setHmQrcode(hm.getWxQrcode());
} else { } else {
retDTO.setSm("动态活码");
retDTO.setHmQrcode(addResp.getResult()); retDTO.setHmQrcode(addResp.getResult());
} }
} }
......
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