夏文涛 11 ヶ月 前
コミット
84dda63753

+ 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);
         }