|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.commons.extappauth.aspect; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
@ -96,7 +97,8 @@ public class ExternalAppRequestAuthAspect { |
|
|
|
if (parameters[i].getType() == ExternalAppRequestParam.class) { |
|
|
|
ExternalAppRequestParam requestParam = (ExternalAppRequestParam) point.getArgs()[i]; |
|
|
|
requestParam.setAppId(appId); |
|
|
|
requestParam.setCustomerId(authResult.getCustomerId() == null ? customerId : authResult.getCustomerId()); |
|
|
|
requestParam.setCustomerId(StringUtils.isBlank(authResult.getCustomerId()) ? customerId : authResult.getCustomerId()); |
|
|
|
logger.info("auth ExternalAppRequestParam:{}", JSON.toJSONString(requestParam)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|