Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -147,7 +147,7 @@ public interface ApiService { | ... | @@ -147,7 +147,7 @@ public interface ApiService { |
| 147 | @Header(WarpConstants.HEADER_AUTHORIZATION) String bearer); | 147 | @Header(WarpConstants.HEADER_AUTHORIZATION) String bearer); |
| 148 | 148 | ||
| 149 | @Headers("Content-Type: application/json") | 149 | @Headers("Content-Type: application/json") |
| 150 | - @POST("/api/mobile/v2/{appUuid}/context/") | 150 | + @POST("/oauth/{appUuid}/context") |
| 151 | Call<ResponseBody> getCouponsets(@Path("appUuid") String appUuid, | 151 | Call<ResponseBody> getCouponsets(@Path("appUuid") String appUuid, |
| 152 | @Body RequestBody request, | 152 | @Body RequestBody request, |
| 153 | @Header(WarpConstants.HEADER_DATE) String timeStamp, | 153 | @Header(WarpConstants.HEADER_DATE) String timeStamp, | ... | ... |
| ... | @@ -581,7 +581,7 @@ public class WarplyManager { | ... | @@ -581,7 +581,7 @@ public class WarplyManager { |
| 581 | if (jobjCouponsetsResponse != null && jobjCouponsetsResponse.has("status") && jobjCouponsetsResponse.optString("status", "2").equals("1")) { | 581 | if (jobjCouponsetsResponse != null && jobjCouponsetsResponse.has("status") && jobjCouponsetsResponse.optString("status", "2").equals("1")) { |
| 582 | JSONArray jCouponsetsBody = null; | 582 | JSONArray jCouponsetsBody = null; |
| 583 | try { | 583 | try { |
| 584 | - jCouponsetsBody = jobjCouponsetsResponse.optJSONObject("context").optJSONArray("MAPP_COUPON"); | 584 | + jCouponsetsBody = jobjCouponsetsResponse.optJSONArray("result"); |
| 585 | } catch (Exception e) { | 585 | } catch (Exception e) { |
| 586 | e.printStackTrace(); | 586 | e.printStackTrace(); |
| 587 | } | 587 | } | ... | ... |
-
Please register or login to post a comment