|
@ -1452,7 +1452,7 @@ public class ChargingCommentActivity extends Activity implements View.OnClickLis
|
1452
|
1452
|
|
1453
|
1453
|
|
1454
|
1454
|
private void getShareIntegral() {
|
1455
|
|
String url = MainApplication.url + "/zhannew/basic/web/index.php/member/insert-task?userid=" + MainApplication.userId;
|
|
1455
|
String url = MainApplication.url + "/zhannew/basic/web/index.php/member/insert-task?userid=" + MainApplication.userId + "&order_id=" + order_id;
|
1456
|
1456
|
OkHttpUtils.get().url(url).build().execute(new StringCallback() {
|
1457
|
1457
|
@Override
|
1458
|
1458
|
public void onError(Call call, Exception e) {
|
|
@ -1463,6 +1463,12 @@ public class ChargingCommentActivity extends Activity implements View.OnClickLis
|
1463
|
1463
|
public void onResponse(String response) {
|
1464
|
1464
|
LogUtils.e(response);
|
1465
|
1465
|
String rtnCode = JsonUtils.getKeyResult(response, "rtnCode");
|
|
1466
|
String red_money = JsonUtils.getKeyResult(response, "red_money");
|
|
1467
|
int redMoney = Integer.valueOf(red_money);
|
|
1468
|
if (redMoney > 0) {
|
|
1469
|
new HongBaoResultDialog(ChargingCommentActivity.this).builder().setCancelable(true).show(redMoney);
|
|
1470
|
}
|
|
1471
|
|
1466
|
1472
|
if ("01".equals(rtnCode)) { // 成功
|
1467
|
1473
|
String plusScore = JsonUtils.getKeyResult(response, "plusScore");
|
1468
|
1474
|
if (!plusScore.equals("")) {
|
|
@ -1475,10 +1481,6 @@ public class ChargingCommentActivity extends Activity implements View.OnClickLis
|
1475
|
1481
|
}
|
1476
|
1482
|
}, 1500);
|
1477
|
1483
|
}
|
1478
|
|
|
1479
|
|
String redMoney = JsonUtils.getKeyResult(response, "red_money");
|
1480
|
|
System.out.println("dsssssssss");
|
1481
|
|
|
1482
|
1484
|
} else {
|
1483
|
1485
|
ToastUtil.showToast(getApplicationContext(), "分享成功", Toast.LENGTH_SHORT);
|
1484
|
1486
|
}
|