src/main/java/io/github/biezhi/wechat/api/WeChatApiImpl.java
@Override
    public Account getAccountByName(String name) {
        for (Account account : accountMap.values()) {
            if (name.equals(account.getRemarkName())) {
                return account;
            }
            if (name.equals(account.getNickName())) {
                return account;
            }
        }
        return null;
    }
@Override
    public Account getAccountByName(String name) {
        for (Account account : accountMap.values()) {
            if (name.equals(account.getRemarkName())) {
                return account;
            }
            if (name.equals(account.getNickName())) {
                return account;
            }
        }
        return null;
    }
根据备注或昵称查找账户

@param name
@return