|
@@ -28,9 +28,12 @@ public class CdfProductApiController {
|
|
|
@RequestParam(required = false) String skuId,
|
|
|
@RequestParam(required = false) Integer num){
|
|
|
JSONObject jsonObject = cdfClient.inCat(AccessToken, new CdfInCatRequest(skuId, num));
|
|
|
- if(jsonObject.get("success")==null || !jsonObject.getBoolean("success")){
|
|
|
+ if(jsonObject.get("success")!=null && !jsonObject.getBoolean("success")){
|
|
|
return ResultData.error(jsonObject.getString("msg"));
|
|
|
}
|
|
|
+ if(jsonObject.get("status")!=null ){
|
|
|
+ return ResultData.error(401,jsonObject.getString("msg"));
|
|
|
+ }
|
|
|
return ResultData.ok(jsonObject);
|
|
|
}
|
|
|
|