From 4c72788f76949dce6706884d3beb2c61577a40b6 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 12 Feb 2024 23:39:07 +0800 Subject: [PATCH] T --- .../Views/Engineering/Yuntech_in_car.cshtml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml index 4ffabff..64911d1 100644 --- a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml @@ -91,6 +91,9 @@ type: "GET", url: "http://140.125.20.183:7700/api/Yuntech_in_car_table", data: {}, + headers: { + 'Authorization': token + }, contentType: "application/json", success: function (Model) { //console.log(Model) @@ -174,7 +177,9 @@ type: "GET", url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, data: {}, - contentType: "application/json", + headers: { + 'Authorization': token + }, success: function (Model) { console.log(Model) table = ""; @@ -202,6 +207,9 @@ type: "GET", url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, data: {}, + headers: { + 'Authorization': token + }, contentType: "application/json", success: function (Model) { console.log(Model) @@ -225,6 +233,9 @@ type: "GET", url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, data: {}, + headers: { + 'Authorization': token + }, contentType: "application/json", success: function (Model) { console.log(Model)