commit some uncommited file
This commit is contained in:
@@ -144,7 +144,7 @@ $state = [
|
|||||||
<div>
|
<div>
|
||||||
<div class="font-small text-gray-900 text-sm font-bold">{{ $task->title }}</div>
|
<div class="font-small text-gray-900 text-sm font-bold">{{ $task->title }}</div>
|
||||||
@if($task->description)
|
@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
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+26
-11
@@ -122,20 +122,35 @@ Route::post('attendance/enter', function (Request $request) {
|
|||||||
|
|
||||||
Route::post('/1', function (Request $request) {
|
Route::post('/1', function (Request $request) {
|
||||||
$data = $request->all();
|
$data = $request->all();
|
||||||
if(isset($data['callback_query']))
|
try {
|
||||||
unset($data['callback_query']['message']['text']);
|
if (isset($data['callback_query'])) {
|
||||||
try{
|
unset($data['callback_query']['message']['text']);
|
||||||
Http::withoutVerifying()->timeout(3)->retry(3, 2000)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
|
unset($data['callback_query']['message']['entities']);
|
||||||
"chat_id"=> "985309723",
|
unset($data['callback_query']['message']['reply_markup']);
|
||||||
"text"=> json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
|
} else {
|
||||||
]);
|
unset($data['message']['entities']);
|
||||||
}catch(\Exception $e){
|
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', [
|
Http::withoutVerifying()->timeout(3)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
|
||||||
"chat_id"=> "985309723",
|
"chat_id" => "985309723",
|
||||||
"text"=> json_encode($e->getMessage(), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
|
"text" => 'response has issues',
|
||||||
]);
|
]);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::post('/pplain', function (Request $request) {
|
Route::post('/pplain', function (Request $request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user