fix 二级商户查询三级商户

master
luoyang 6 years ago
parent f291d463a9
commit 14fb7a32eb

@ -1896,7 +1896,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject clientInfo = getClientInfo(Integer.parseInt(currentClientId));
if (clientInfo.containsKey("parent_client_id")) {
int parentClientId = clientInfo.getIntValue("parent_client_id");
if (parentClientId != client_id && !listLevel3Client(client_id).contains(parentClientId)) {
if (parentClientId != client_id && client_id!= Integer.parseInt(currentClientId) && !listLevel3Client(client_id).contains(parentClientId)) {
throw new Exception("partner has no permission");
}
}

Loading…
Cancel
Save