From 9cd218f0bebc19b86efeca2b33abe3adf093990c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 20 六月 2020 18:59:35 +0800 Subject: [PATCH] '完善' --- WindowsFormsApp1/utils/ApiUtil.cs | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/WindowsFormsApp1/utils/ApiUtil.cs b/WindowsFormsApp1/utils/ApiUtil.cs index 75a975f..7650a7d 100644 --- a/WindowsFormsApp1/utils/ApiUtil.cs +++ b/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)); + } -- Gitblit v1.8.0