code: public ResultType uploadHeadImg(String accountName, File file) {
          LOG.debug("设置客服帐号头像.....");
          BeanUtil.requireNonNull(accountName, "帐号必填");
          BeanUtil.requireNonNull(file, "文件为空");
  
          String fileName = file.getName().toLowerCase();
          if (!fileName.endsWith("jpg")) {
              throw new WeixinException("头像必须是jpg格式");
          }
          String url = BASE_API_URL + "customservice/kfaccount/uploadheadimg?access_token=#&kf_account=" + accountName;
          BaseResponse response = executePost(url, null, file);
          return ResultType.get(response.getErrcode());
      }
docs: 设置客服帐号头像
  
  @param accountName 客服帐号名
  @param file        头像文件
  @return 设置结果