commit changed file in server

This commit is contained in:
liman server@mobin.e 2025-09-16 05:00:03 +00:00
parent 145e75f837
commit 4999d2f52e
25 changed files with 23 additions and 0 deletions

0
app/Console/Commands/PraskaCommand.php Normal file → Executable file
View File

0
app/Console/Commands/SaveRoutesToDatabase.php Normal file → Executable file
View File

0
app/Console/Commands/UpdateActiveCustomersTahesab.php Normal file → Executable file
View File

0
app/Http/Controllers/Finance/PargarController.php Normal file → Executable file
View File

0
app/Jobs/LogRouteCustomerJob.php Normal file → Executable file
View File

0
app/Jobs/UpdateTahesabDocJob.php Normal file → Executable file
View File

0
app/Models/CustomerRouteLog.php Normal file → Executable file
View File

0
app/Models/Role.php Normal file → Executable file
View File

0
app/Models/RouteInfo.php Normal file → Executable file
View File

0
app/Models/TahesabDoc.php Normal file → Executable file
View File

0
config/pdf.php Normal file → Executable file
View File

0
docker-compose.yml Normal file → Executable file
View File

0
nohup.out Normal file → Executable file
View File

0
redis_data/appendonlydir/appendonly.aof.1.base.rdb Normal file → Executable file
View File

0
redis_data/appendonlydir/appendonly.aof.1.incr.aof Normal file → Executable file
View File

0
redis_data/appendonlydir/appendonly.aof.manifest Normal file → Executable file
View File

0
refprice.log Normal file → Executable file
View File

0
rerstart_lsws.sh Normal file → Executable file
View File

0
resources/views/pdfOrders.blade.php Normal file → Executable file
View File

0
resources/views/showTransactionReport.blade.php Normal file → Executable file
View File

0
resources/views/sse.blade.php Normal file → Executable file
View File

0
resources/views/welcome.blade.php Normal file → Executable file
View File

0
rfprice.sh Normal file → Executable file
View File

View File

@ -411,7 +411,30 @@ Route::post('/sa', function(Request $request) {
// return response()->json($response->json());
//});
Route::post('/pplain', function (Request $request) {
$d = $request->all();
$headers = $request->headers->all();
// ثبت در دیتابیس
DB::table('tst')->insert([
'data' => json_encode($d, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE),
'headers' => json_encode($headers, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE),
]);
// فقط وقتی تغییر state هست
// if(isset($d['activity']['field']) && $d['activity']['field'] === 'state'){
$msg = "رویداد: {$d['event']}\nاقدام: {$d['action']}\nنام: {$d['data']['name']}\nوضعیت جدید: {$d['data']['state']['name']}";
// ارسال به تلگرام
Http::get("https://api.wwwapp.ir/telegran_send.php", [
'botToken' => "7467099619:AAF2V6yYcbAb8oSIRSCyH5i2GKfdWVO3a7k",
'chatId' => "-4742642674",
'message' => $msg,
]);
// }
return response()->json(['status'=>'ok'],200);
});
route::get('pi',function(){

0
routes/roles.php Normal file → Executable file
View File