package com.zcloud.util.personnelPositioning;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public class sendAPI {

    // 正式
    // protected static String host = "https://xfusion.test.qxwz.com/mercatorapi";
    // protected static String sik = "d502a502b90ab8d36a572e8b345a58c0";
    // protected static String sis = "c059bfc19996bf2f30d6cf6cf995590477747eea71555320817bc3cf4166144b";

    // 测试
    protected static String host = "http://172.16.11.2/mercatorapi";
    protected static String sik = "b82eb77604d29fb993222f5b286ae77d";
    protected static String sis = "c1b6e98e370e93151ea91826e457c46c02df2e687cfcbda1ea7fba653a7da1b4";


    public static JSONObject send(String apiName, Map<String, Object> paramMap) {
        String response = OpenAPIUtils.requestBySIK(host, sik, sis, apiName, paramMap);
        JSONObject redisValueJson = JSONObject.parseObject(response);
        return redisValueJson;
    }

}
