admin
2020-06-20 9cd218f0bebc19b86efeca2b33abe3adf093990c
WindowsFormsApp1/utils/ApiUtil.cs
@@ -195,7 +195,7 @@
            startRequest(new RequestParams(BASE_URL + "user/renewShare", paramsMap, headers, listener));
        }
        //获取配置文件
        public static void GetConfig( OnSuccess listener)
        {
            Dictionary<String, String> headers = new Dictionary<String, String>();
@@ -203,6 +203,26 @@
       
            startRequest(new RequestParams(BASE_URL + "config/getConfig", null, headers, listener));
        }
        //获取模板
        public static void GetTemplate(OnSuccess listener)
        {
            Dictionary<String, String> headers = new Dictionary<String, String>();
            headers.Add("token", Constant.token);
            startRequest(new RequestParams(BASE_URL + "sdlj/goods/getTemplate", null, headers, listener));
        }
        //获取模板
        public static void SetTemplate(bool reset,String template, OnSuccess listener)
        {
            Dictionary<String, String> headers = new Dictionary<String, String>();
            headers.Add("token", Constant.token);
            Dictionary<String, String> paramsMap = new Dictionary<String, String>();
            paramsMap.Add("type",(reset?1:0)+"");
            if(template!=null)
                paramsMap.Add("template", template);
            startRequest(new RequestParams(BASE_URL + "sdlj/goods/setTemplate", paramsMap, headers, listener));
        }