public boolean sendMsgByName(String name, String msg) {
        Account account = api.getAccountByName(name);
        if (null == account) {
            log.warn("找不到用户: {}", name);
            return false;
        }
        return this.api.sendText(account.getUserName(), msg);
    }
public boolean sendMsgByName(String name, String msg) {
        Account account = api.getAccountByName(name);
        if (null == account) {
            log.warn("找不到用户: {}", name);
            return false;
        }
        return this.api.sendText(account.getUserName(), msg);
    }
public boolean sendMsgByName ( String name , String msg ) { Account account = api . getAccountByName ( name ) ; if ( null == account ) { log . warn ( "找不到用户: {}", name); return false ; } return this . api . sendText ( account . getUserName ( ) , msg ) ; }
根据名称发送消息

@param name 备注或昵称，精确匹配
@param msg  消息内容
@return 发送是否成功
根据名称发送消息