|
|
|
@ -52,7 +52,8 @@ public class FactoryAuthController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "获取token推送", notes = "传入factoryAccountDTO") |
|
|
|
|
public R token(@Validated @RequestBody FactoryAccountDTO factoryAccountDTO, HttpServletResponse response) { |
|
|
|
|
log.info("############token: 获取账号token"); |
|
|
|
|
log.info("############token: 获取账号token "); |
|
|
|
|
log.info("############请求参数 factoryAccountDTO:{}",factoryAccountDTO); |
|
|
|
|
//通过企业id 应用id 秘钥 获取对应的token
|
|
|
|
|
String corpid = factoryAccountDTO.getCorpid();//企业id
|
|
|
|
|
String appkey = factoryAccountDTO.getAppkey();//应用id
|
|
|
|
@ -63,6 +64,8 @@ public class FactoryAuthController extends BladeController {
|
|
|
|
|
String token = factoryTokenVO.getToken(); |
|
|
|
|
//把token放入头
|
|
|
|
|
response.setHeader("Authorization",token); |
|
|
|
|
log.info("############响应参数 factoryTokenVO :{}",factoryTokenVO); |
|
|
|
|
|
|
|
|
|
return R.data(factoryTokenVO); |
|
|
|
|
}catch (CustomerException e){ |
|
|
|
|
log.error(e.getMessage(),e); |
|
|
|
|