NASER refresh page after close task detail modal and redirect to tasks list after create task
This commit is contained in:
+9
-2
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user