update status
This commit is contained in:
		
							parent
							
								
									10ab800212
								
							
						
					
					
						commit
						e7e81dead7
					
				| 
						 | 
					@ -113,6 +113,7 @@ class TrackingController extends Controller
 | 
				
			||||||
                        ]);
 | 
					                        ]);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
 | 
					                    $payload['status'] = $this->CHECK_IN;
 | 
				
			||||||
                    $tracking = Tracking::create($payload);
 | 
					                    $tracking = Tracking::create($payload);
 | 
				
			||||||
                    $this->createOrUpdateRecordForCurrentMonth($payload['created_at']->month, $payload['created_at']->year);
 | 
					                    $this->createOrUpdateRecordForCurrentMonth($payload['created_at']->month, $payload['created_at']->year);
 | 
				
			||||||
                    return response()->json([
 | 
					                    return response()->json([
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					/images
 | 
				
			||||||
 | 
					/data
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,7 @@ screen_height = 1100
 | 
				
			||||||
WINDOW_QR_CODE = "QR Code"
 | 
					WINDOW_QR_CODE = "QR Code"
 | 
				
			||||||
WINDOW_TRACKING = "Tracking"
 | 
					WINDOW_TRACKING = "Tracking"
 | 
				
			||||||
WINDOW_HISTORY = "History"
 | 
					WINDOW_HISTORY = "History"
 | 
				
			||||||
URL_API = "http://localhost:8000/api/v1"
 | 
					URL_API = "https://ms.prology.net/api/v1"
 | 
				
			||||||
data = [0]
 | 
					data = [0]
 | 
				
			||||||
# Hàm thông báo bằng giọng nói
 | 
					# Hàm thông báo bằng giọng nói
 | 
				
			||||||
def speak(text):
 | 
					def speak(text):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue