|
@@ -151,7 +151,7 @@ public class ImportPaperByCourse {
|
|
fileList.add(new FormFilePart("dataFile", zfile.getName(), zfile));
|
|
fileList.add(new FormFilePart("dataFile", zfile.getName(), zfile));
|
|
Response resp = null;
|
|
Response resp = null;
|
|
try {
|
|
try {
|
|
- OKHttpUtil.initOkHttpClient();
|
|
|
|
|
|
+// OKHttpUtil.initOkHttpClient();
|
|
resp = OKHttpUtil.call(HttpMethod.POST, url, headers, params, fileList);
|
|
resp = OKHttpUtil.call(HttpMethod.POST, url, headers, params, fileList);
|
|
if (resp.code() != 200) {
|
|
if (resp.code() != 200) {
|
|
throw new Exception(zfile.getName() + ":body:" + resp.body().string());
|
|
throw new Exception(zfile.getName() + ":body:" + resp.body().string());
|