commit some uncommited file
This commit is contained in:
@@ -144,7 +144,7 @@ $state = [
|
||||
<div>
|
||||
<div class="font-small text-gray-900 text-sm font-bold">{{ $task->title }}</div>
|
||||
@if($task->description)
|
||||
<div class="text-xs text-gray-500 mt-1 line-clamp-2">{!! strip_tags($task->description) !!}</div>
|
||||
<div class="text-xs text-gray-500 mt-1 line-clamp-2">{{ \Illuminate\Support\Str::limit(strip_tags($task->description), 50) }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+26
-11
@@ -122,20 +122,35 @@ 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)->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){
|
||||
try {
|
||||
if (isset($data['callback_query'])) {
|
||||
unset($data['callback_query']['message']['text']);
|
||||
unset($data['callback_query']['message']['entities']);
|
||||
unset($data['callback_query']['message']['reply_markup']);
|
||||
} else {
|
||||
unset($data['message']['entities']);
|
||||
unset($data['message']['reply_markup']);
|
||||
}
|
||||
|
||||
try {
|
||||
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) {
|
||||
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;
|
||||
}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),
|
||||
"chat_id" => "985309723",
|
||||
"text" => 'response has issues',
|
||||
]);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
Route::post('/pplain', function (Request $request) {
|
||||
|
||||
Reference in New Issue
Block a user