Browse Source

1.查询推送失败的原因

training
‘chaoosc’ 1 year ago
parent
commit
1f6b108542
  1. 5
      blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/controller/FactoryAuthController.java

5
blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/controller/FactoryAuthController.java

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

Loading…
Cancel
Save