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

@param name    备注或昵称，精确匹配
@param imgPath 图片路径
@return 发送是否成功
根据名称发送图片消息