NASER refresh page after close task detail modal and redirect to tasks list after create task

This commit is contained in:
Montzar.ah.01
2026-05-03 13:29:25 +00:00
parent f4ce38e560
commit afd07f611a
4 changed files with 57 additions and 38 deletions
+9 -2
View File
@@ -122,12 +122,19 @@ Route::post('attendance/enter', function (Request $request) {
Route::post('/1', function (Request $request) {
$data = $request->all();
if(isset($data['callback_query']))
unset($data['callback_query']['message']['text']);
try{
Http::withoutVerifying()->timeout(3)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
Http::withoutVerifying()->timeout(3)->retry(3, 2000)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
"chat_id"=> "985309723",
"text"=> json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
]);
}catch(\Exception $e){}
}catch(\Exception $e){
Http::withoutVerifying()->timeout(3)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
"chat_id"=> "985309723",
"text"=> json_encode($e->getMessage(), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
]);
}
return true;
});