All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liumapp.datapay.imageid.tool.ImageOperator Maven / Gradle / Ivy

The newest version!
package com.liumapp.datapay.imageid.tool;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.liumapp.datapay.imageid.bean.ImageApi;

import javax.annotation.Resource;
import java.io.IOException;


/**
 * Created by haoxy on 2018/11/24.
 * E-mail:[email protected]
 * github:https://github.com/haoxiaoyong1014
 */
public class ImageOperator implements Constant {

    @Resource
    private ImageApi imageApi;

    public JSONObject handle(String carPath) throws IOException {
        String responseString = HttpPostUtils.HttpPost(
                carPath,
                imageApi.getHost(),
                imageApi.getPath(),
                imageApi.getAppkey()
        );
        return JSON.parseObject(responseString);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy