|
|
@@ -280,13 +280,9 @@ public class RestApiPaypalService {
|
|
|
.execute();
|
|
|
// 订阅正常创建
|
|
|
log.info("cancelSubscriptions-resp:{}",response);
|
|
|
- if(response.getStatus() != 201){
|
|
|
+ if(response.getStatus() != 204){
|
|
|
throw new BusinessException(ResultCode.CANCEL_SUBSCRIPTIONS_ERROR);
|
|
|
}
|
|
|
- if (response.getStatus() == 201) {
|
|
|
- JSONObject respObj = JSONObject.parseObject(response.body());
|
|
|
- log.info("cancelSubscriptions-respObj:{}",respObj);
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
|