|
|
@@ -291,8 +291,7 @@ public class RestApiPaypalService {
|
|
|
.execute();
|
|
|
// 订阅正常创建
|
|
|
log.info("cancelSubscriptions-resp:{}",response);
|
|
|
- String resp = response.toString();
|
|
|
- if(response.getStatus() != 204 && response.getStatus() != 404 && !resp.contains("SUBSCRIPTION STATUS INVALID")){
|
|
|
+ if(response.getStatus() != 204 && response.getStatus() != 404 && response.getStatus() != 422){
|
|
|
throw new BusinessException(ResultCode.CANCEL_SUBSCRIPTIONS_ERROR);
|
|
|
}
|
|
|
|