| | |
| | | startRequest(new RequestParams(BASE_URL + "user/renewShare", paramsMap, headers, listener)); |
| | | } |
| | | |
| | | |
| | | //获取配置文件 |
| | | public static void GetConfig( OnSuccess listener) |
| | | { |
| | | Dictionary<String, String> headers = new Dictionary<String, String>(); |
| | |
| | | |
| | | 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)); |
| | | } |
| | | |
| | | |
| | | |