|
|
|
@ -196,12 +196,13 @@ public class CouponValidateServiceImpl implements CouponValidateService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject ctripCouponLogNotice(String coupon_id, String order_id, String open_id) {
|
|
|
|
|
public JSONObject ctripCouponLogNotice(String coupon_id, String order_id, String open_id,String status) {
|
|
|
|
|
String uri = signUrl(UriComponentsBuilder.fromHttpUrl(CUSTOMER_HOST + "coupon/"+coupon_id+"/addCtripCouponLog"));
|
|
|
|
|
HttpRequestGenerator gen = new HttpRequestGenerator(uri, RequestMethod.POST);
|
|
|
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
|
|
|
params.add(new BasicNameValuePair("order_id", order_id));
|
|
|
|
|
params.add(new BasicNameValuePair("openid", open_id));
|
|
|
|
|
params.add(new BasicNameValuePair("status", status));
|
|
|
|
|
gen.setFormStringEntity(params);
|
|
|
|
|
try {
|
|
|
|
|
HttpRequestResult reqResult = gen.execute();
|
|
|
|
|