Commit 270fd408 by huangZW

111

parent ffc0cfad
......@@ -31,7 +31,7 @@ public class InfoController extends WebBaseController{
private Config config;
@RequestMapping("get-info-by-code")
public HaobanResponse getInfoByCode(String code) {
String userDTOJson = qywxCorpApiService.getUserInfoSimple(config.getSuiteId(),code);
String userDTOJson = qywxCorpApiService.getUserInfoSimple(config.getWxSuiteid(),code);
UserDTO user = JSON.parseObject(userDTOJson, UserDTO.class);
String userId = user.getUserid();
StaffDTO loginStaff = staffApiService.selectByUserId(userId);
......@@ -46,7 +46,7 @@ public class InfoController extends WebBaseController{
String wxEnterpriseId = loginStaff.getWxEnterpriseId();
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseApiService.getOne(wxEnterpriseId);
String accesstoken = qywxCorpApiService.getCorpAccessToken(wxEnterpriseDTO.getCorpid(), config.getSuiteId());
String accesstoken = qywxCorpApiService.getCorpAccessToken(wxEnterpriseDTO.getCorpid(), config.getWxSuiteid());
InfoVo infoVo = new InfoVo();
infoVo.setAccessToken(accesstoken);
infoVo.setStaffId(loginStaff.getStaffId());
......
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