puzhibing
2024-08-24 1bcd8243e5ae8a07f73b49b3f4c5458c6b53bf9e
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserController.java
@@ -805,9 +805,19 @@
    @ApiOperation(value = "获取车辆品牌", tags = {"小程序-个人中心-车辆"})
    @GetMapping(value = "/user/car/getBrands")
    public R getBrands() throws Exception {
    public R getBrands(String name) throws Exception {
        String brand = CarBrandUtil.getBrand();
        return R.ok(brand);
        JSONObject jsonObject = JSON.parseObject(brand);
        JSONArray data = jsonObject.getJSONArray("data");
        return R.ok(data);
    }
    @ApiOperation(value = "根据品牌获取车型", tags = {"小程序-个人中心-车辆"})
    @GetMapping(value = "/user/car/getModel")
    public R getModel(String id) throws Exception {
        String modelById = CarBrandUtil.getModelById(id);
        return R.ok(modelById);
    }
}