夏文涛 пре 11 месеци
родитељ
комит
84dda63753
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main/java/com/template/component/ParkingFeeSystemComponent.java

+ 2 - 2
src/main/java/com/template/component/ParkingFeeSystemComponent.java

@@ -94,9 +94,9 @@ public class ParkingFeeSystemComponent {
         }
 
         JSONObject jsonObject = JSON.parseObject(result);
-        String state = jsonObject.getString("state");
+        String state = jsonObject.getString("message");
         // 1 表示新增成功
-        if (!StrUtil.equals(state, "1")) {
+        if (!StrUtil.equals(state, "添加成功")) {
             log.error("新增车牌失败,返回信息为:{}", result);
             throw new MyCustomException(ResponseStatusEnum.THIRD_API_ERROR);
         }