正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
@@ -5,8 +5,8 @@ public class Config { | @@ -5,8 +5,8 @@ public class Config { | ||
5 | public static int RUN_MODE = 1; // 0 测试 1 正式 | 5 | public static int RUN_MODE = 1; // 0 测试 1 正式 |
6 | public static final String BASE_IP = "http://class.ynsdfx.com";//正式服务器 | 6 | public static final String BASE_IP = "http://class.ynsdfx.com";//正式服务器 |
7 | // public static final String BASE_IP = "http://ctest.ynsdfx.com";//测试服务器 | 7 | // public static final String BASE_IP = "http://ctest.ynsdfx.com";//测试服务器 |
8 | - public static final String LOGIN_IP="http://school.hzpark.com";//登录的 | ||
9 | -// public static final String LOGIN_IP="http://api.ynsdfx.com";//登录的 | 8 | +// public static final String LOGIN_IP="http://school.hzpark.com";//登录的 |
9 | + public static final String LOGIN_IP="http://api.ynsdfx.com";//登录的 | ||
10 | public static final String YNSDFX_IP = "http://api.ynsdfx.com";//云附小服务器 | 10 | public static final String YNSDFX_IP = "http://api.ynsdfx.com";//云附小服务器 |
11 | // public static final String BASE_IP = "http://tusmartedu.w.brotop.cn";//测试服务器 | 11 | // public static final String BASE_IP = "http://tusmartedu.w.brotop.cn";//测试服务器 |
12 | public static String USE_URL = (RUN_MODE == 0 ? LOGIN_IP : BASE_IP); | 12 | public static String USE_URL = (RUN_MODE == 0 ? LOGIN_IP : BASE_IP); |
@@ -742,9 +742,9 @@ public class BjwjActivity extends BaseActivity { | @@ -742,9 +742,9 @@ public class BjwjActivity extends BaseActivity { | ||
742 | final RequestBody requestBody = RequestBody.create(MediaType.parse("multipart/form-data"), file); | 742 | final RequestBody requestBody = RequestBody.create(MediaType.parse("multipart/form-data"), file); |
743 | MultipartBody.Part body = MultipartBody.Part.createFormData("files", file.getName(), requestBody); | 743 | MultipartBody.Part body = MultipartBody.Part.createFormData("files", file.getName(), requestBody); |
744 | sRetrofit.create(ApiService.class) | 744 | sRetrofit.create(ApiService.class) |
745 | - .upload2("2f9c663e-9137-43cd-a2fd-02e1a09f03ff", | ||
746 | - "2f9c663e-9137-43cd-a2fd-02e1a09f03ff", | ||
747 | - "2f9c663e-9137-43cd-a2fd-02e1a09f03ff", body) | 745 | + .upload2(Config.Token, |
746 | + Config.Token, | ||
747 | + Config.Token, body) | ||
748 | .enqueue(new Callback<PostFielBean>() { | 748 | .enqueue(new Callback<PostFielBean>() { |
749 | @Override | 749 | @Override |
750 | public void onResponse(Call<PostFielBean> call, Response<PostFielBean> response) { | 750 | public void onResponse(Call<PostFielBean> call, Response<PostFielBean> response) { |
-
请 注册 或 登录 后发表评论