update status

This commit is contained in:
JOSEPH LE 2024-07-26 08:41:12 +07:00
parent 10ab800212
commit e7e81dead7
3 changed files with 4 additions and 1 deletions

View File

@ -113,6 +113,7 @@ class TrackingController extends Controller
]);
}
} else {
$payload['status'] = $this->CHECK_IN;
$tracking = Tracking::create($payload);
$this->createOrUpdateRecordForCurrentMonth($payload['created_at']->month, $payload['created_at']->year);
return response()->json([

2
TrackingTool/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/images
/data

View File

@ -14,7 +14,7 @@ screen_height = 1100
WINDOW_QR_CODE = "QR Code"
WINDOW_TRACKING = "Tracking"
WINDOW_HISTORY = "History"
URL_API = "http://localhost:8000/api/v1"
URL_API = "https://ms.prology.net/api/v1"
data = [0]
# Hàm thông báo bằng giọng nói
def speak(text):