Commit d4aad1cd by 徐高华

Merge branch 'eature/xgh/bug0808' into 'master'

小程序的跳转

See merge request !2109
parents 4800f066 f280e540
......@@ -230,12 +230,12 @@ public class OpenStaffServiceImpl implements OpenStaffService {
QwOpenResultInitBO bo = initResp.getResult();
String newUuid = bo.getUuid();
if (bo.isIs_login()) {
this.openStaffMapper.updateByAutoLogin(qwUserId, newUuid);
this.openStaffMapper.updateByAutoLogin(openStaffId, newUuid);
return newUuid;
}
boolean autLogin = OpenUtils.autoLogin(newUuid);
if (autLogin) {
this.openStaffMapper.updateByAutoLogin(qwUserId, newUuid);
this.openStaffMapper.updateByAutoLogin(openStaffId, newUuid);
return newUuid;
}
}
......
......@@ -227,7 +227,7 @@ public class QywxSendServiceImpl implements QywxSendService {
miniprogramMaterialDTO.setPicMediaId(maerialId);
miniprogramMaterialDTO.setAppid(material.getAppId());
miniprogramMaterialDTO.setPage(material.getLink());
/* if(null != planType && StringUtils.isNotBlank(planId)) {
if(null != planType && StringUtils.isNotBlank(planId)) {
String url = "qtActivityType="+planType+"&qtActivityId="+planId ;
if(material.getLink().contains("?")) {
url = "&" + url ;
......@@ -235,7 +235,7 @@ public class QywxSendServiceImpl implements QywxSendService {
url = "?" +url ;
}
miniprogramMaterialDTO.setPage(material.getLink()+url);
}*/
}
log.info("群发链接={}",material.getLink(),miniprogramMaterialDTO.getPage());
dto.setMsgType(QywxMediaTypeEnum.MINIPROGRAM.getName());
dto.setMiniprogram(miniprogramMaterialDTO);
......
......@@ -141,7 +141,7 @@ public class OpenUtils {
logger.info("获取当前账号详情={},uuid={}", backJson, uuid);
JSONObject resultJson = JSONObject.parseObject(backJson);
int errcode = resultJson.getIntValue("errcode");
if (errcode == 500 && resultJson.getString("errmsg").contains("实例不存在")) {
if (errcode == 500) {
return false;
}
return true;
......
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