cache details

master
yixian 5 years ago
parent 850090b0be
commit f544aba171

@ -2455,7 +2455,6 @@ public class RetailAppServiceImp implements RetailAppService {
@Override
public JSONObject postAppMessage(JSONObject device, RetailAppMessage message) {
logger.debug("post message called by device:{}", device.toJSONString());
String clientType = device.getString("client_type");
if (!GatewayOAuthRegister.CLIENT_TYPE.equals(clientType)) {
throw new ForbiddenException("Invalid Client Type:" + clientType);

@ -63,7 +63,6 @@ public class GatewayOAuthRegister implements DeviceRegister {
JSONObject client = provider.getClientInfo(clientId);
auth.put("client_moniker", client.getString("client_moniker"));
auth.put("client", client);
logger.debug("dev info:{}", auth.toJSONString());
return auth;
}
@ -92,7 +91,7 @@ public class GatewayOAuthRegister implements DeviceRegister {
}
private String authDetailCacheKey(String authId) {
return prefix + ":oauth:auth_detail_cache:" + authId;
return prefix + ":oauth:auth_dev_detail_cache:" + authId;
}

Loading…
Cancel
Save