Commit bb11f8ce by huangZW

111

parent 270fd408
...@@ -31,7 +31,8 @@ public class InfoController extends WebBaseController{ ...@@ -31,7 +31,8 @@ public class InfoController extends WebBaseController{
private Config config; private Config config;
@RequestMapping("get-info-by-code") @RequestMapping("get-info-by-code")
public HaobanResponse getInfoByCode(String code) { public HaobanResponse getInfoByCode(String code) {
String userDTOJson = qywxCorpApiService.getUserInfoSimple(config.getWxSuiteid(),code); String userDTOJson = qywxCorpApiService.getCodeSession(config.getWxSuiteid(),code);
// String userDTOJson = qywxCorpApiService.getUserInfoSimple(config.getWxSuiteid(),code);
UserDTO user = JSON.parseObject(userDTOJson, UserDTO.class); UserDTO user = JSON.parseObject(userDTOJson, UserDTO.class);
String userId = user.getUserid(); String userId = user.getUserid();
StaffDTO loginStaff = staffApiService.selectByUserId(userId); StaffDTO loginStaff = staffApiService.selectByUserId(userId);
......
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