Commit 949fe97fc99ca6f3ccd1bf06fce02d09cf37c733
1 parent
f262303aa8
Exists in
master
接口参数补充
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/src/main/java/com/hjx/parent/HomeworkDetailActivity.java
... | ... | @@ -94,6 +94,7 @@ public class HomeworkDetailActivity extends BaseRxActivity<ActivityHomeworkDetai |
94 | 94 | body.put("subject", data.getSubject()); |
95 | 95 | body.put("term", data.getTerm()); |
96 | 96 | body.put("uploadTime", data.uploadTime); |
97 | + body.put("stuId", student.stuId); | |
97 | 98 | showLoadingDialog("请稍等···"); |
98 | 99 | NetWorks.service_url.editHomework(NetWorks.getHeader(), body) |
99 | 100 | .compose(transformSingle()) | ... | ... |
libs/common/src/main/java/com/prws/common/net/NetWorks.java
... | ... | @@ -58,7 +58,7 @@ import retrofit2.http.Url; |
58 | 58 | */ |
59 | 59 | public class NetWorks extends RetrofitUtils { |
60 | 60 | //服务器路径 |
61 | - public static final NetService service_url = getMachineRetrofit("https://mgr.hjx.com").create(NetService.class); | |
61 | + public static final NetService service_url = getMachineRetrofit("http://192.168.3.144:8088").create(NetService.class); | |
62 | 62 | |
63 | 63 | //设缓存有效期为1天 |
64 | 64 | protected static final long CACHE_STALE_SEC = 60 * 60 * 24 * 1; | ... | ... |