作者 朱振飞

add

... ... @@ -5,8 +5,8 @@ public class Config {
public static int RUN_MODE = 1; // 0 测试 1 正式
public static final String BASE_IP = "http://class.ynsdfx.com";//正式服务器
// public static final String BASE_IP = "http://ctest.ynsdfx.com";//测试服务器
public static final String LOGIN_IP="http://school.hzpark.com";//登录的
// public static final String LOGIN_IP="http://api.ynsdfx.com";//登录的
// public static final String LOGIN_IP="http://school.hzpark.com";//登录的
public static final String LOGIN_IP="http://api.ynsdfx.com";//登录的
public static final String YNSDFX_IP = "http://api.ynsdfx.com";//云附小服务器
// public static final String BASE_IP = "http://tusmartedu.w.brotop.cn";//测试服务器
public static String USE_URL = (RUN_MODE == 0 ? LOGIN_IP : BASE_IP);
... ...
... ... @@ -742,9 +742,9 @@ public class BjwjActivity extends BaseActivity {
final RequestBody requestBody = RequestBody.create(MediaType.parse("multipart/form-data"), file);
MultipartBody.Part body = MultipartBody.Part.createFormData("files", file.getName(), requestBody);
sRetrofit.create(ApiService.class)
.upload2("2f9c663e-9137-43cd-a2fd-02e1a09f03ff",
"2f9c663e-9137-43cd-a2fd-02e1a09f03ff",
"2f9c663e-9137-43cd-a2fd-02e1a09f03ff", body)
.upload2(Config.Token,
Config.Token,
Config.Token, body)
.enqueue(new Callback<PostFielBean>() {
@Override
public void onResponse(Call<PostFielBean> call, Response<PostFielBean> response) {
... ...