server update

This commit is contained in:
root 2024-07-22 13:18:39 +00:00
parent 0a1bc04fd6
commit 0003bc52da
12 changed files with 85 additions and 11 deletions

View File

@ -0,0 +1,27 @@
<?php
namespace App\Logging;
use Monolog\Logger;
use Monolog\Formatter\LineFormatter;
class CustomLogFormatter
{
/**
* Customize the given logger instance.
*
* @param \Monolog\Logger $logger
* @return void
*/
public function __invoke(Logger $logger)
{
foreach ($logger->getHandlers() as $handler) {
$handler->setFormatter(new LineFormatter(null, null, true, true));
$handler->pushProcessor(function ($record) {
$record['extra']['ip'] = request()->ip();
return $record;
});
}
}
}

View File

@ -16,7 +16,7 @@ return [
|
*/
'debug' => true,
'debug' => false, //true
/*
|--------------------------------------------------------------------------

View File

@ -46,6 +46,7 @@ return [
'driver' => 'single',
'path' => storage_path('logs/info.log'),
'level' => 'debug',
'tap' => App\Logging\CustomLogFormatter::class,
],
'daily' => [

View File

@ -16,7 +16,9 @@ return [
|
*/
'driver' => 'smtp',
//'driver' => 'smtp',
'driver' => 'sendmail',
/*
|--------------------------------------------------------------------------

View File

@ -39,3 +39,7 @@ fields:
extension: auto
span: auto
type: fileupload
store_number:
label: 'Номер магазина'
span: auto
type: text

View File

@ -0,0 +1,23 @@
<?php namespace Tps\Shops\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateTpsShopsSales3 extends Migration
{
public function up()
{
Schema::table('tps_shops_sales', function($table)
{
$table->string('store_number');
});
}
public function down()
{
Schema::table('tps_shops_sales', function($table)
{
$table->dropColumn('store_number');
});
}
}

View File

@ -96,3 +96,6 @@
1.0.33:
- 'Updated table tps_shops_rentals_and_sales'
- builder_table_update_tps_shops_rentals_and_sales.php
1.0.34:
- 'Updated table tps_shops_sales'
- builder_table_update_tps_shops_sales_3.php

View File

@ -97,7 +97,7 @@ function onStart(){
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<title>{{'Berkarar'|_}}</title>
<link rel="icon" type="image/x-icon" href="{{ '1.ico'|media }}">
<link href="{{ 'assets/css/main.css'|theme }}" rel="stylesheet">
{% styles %}
</head>

View File

@ -113,6 +113,14 @@ function onStart(){
</span>
{{sale.shop.instagram_name}}
</a>
<h6 class="post_info-cnt wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".1s" style="padding: 10px 16px;">
<!--<span>
<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <title>number_sign [#110]</title> <desc>Created with Sketch.</desc> <defs> </defs> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Dribbble-Light-Preview" transform="translate(-382.000000, -7721.000000)" fill="#000000"> <g id="icons" transform="translate(56.000000, 160.000000)"> <path d="M332,7571 L336,7571 L336,7567 L332,7567 L332,7571 Z M342,7567 L342,7565 L338,7565 L338,7561 L336,7561 L336,7565 L332,7565 L332,7561 L330,7561 L330,7565 L326,7565 L326,7567 L330,7567 L330,7571 L326,7571 L326,7573 L330,7573 L330,7577 L332,7577 L332,7573 L336,7573 L336,7577 L338,7577 L338,7573 L342,7573 L342,7571 L338,7571 L338,7567 L342,7567 Z" id="number_sign-[#110]"> </path> </g> </g> </g> </g></svg>
</span>-->
{{sale.store_number}}
</h6>
</div>
<div class="post_info-txt wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".23s">
{{sale.name}}

View File

@ -19,7 +19,7 @@ function onStart(){
{{'Berkarar Кинотеатр'|_}}
</h4>
<a
href="https://www.instagram.com/berkarar_cinema/"
href="https://www.instagram.com/berkarar_kinoteatr/"
class="movie_link">
<span>
<svg
@ -34,7 +34,7 @@ function onStart(){
/>
</svg>
</span>
@berkarar_cinema
@berkarar_kinoteatr
</a>
</div>

View File

@ -38,7 +38,7 @@
<a href="{{'sales'|page}}">{{'Новости и акции'|_}}</a>
</li>
<li>
<a href="{{ url('/') }}/main-category/0">{{'Все магазины'|_}}</a>
<a href="{{ url('/') }}/main-category/{{0}}">{{'Все магазины'|_}}</a>
</li>
<li>
<a href="{{ 'about'|page}}">{{'Подробней о нас'|_}}</a>

View File

@ -17,6 +17,9 @@ function onStart(){
<li>
<a href="{{ url('/') }}/main-category/0">{{'Все магазины'|_}}</a>
</li>
<li>
<a href="{{ url('/') }}/rentals_and_sales">{{'Аренда и Продажа'|_}}</a>
</li>
<li>
<a href="{{ 'about'|page}}">{{'Подробней о нас'|_}}</a>
</li>
@ -148,7 +151,10 @@ function onStart(){
<a href="{{'sales'|page}}">{{'Новости и акции'|_}}</a>
</li>
<li>
<a href="{{ url('/') }}/main-category/{{0}}/all">{{'Все магазины'|_}}</a>
<a href="{{ url('/') }}/main-category/{{0}}">{{'Все магазины'|_}}</a>
</li>
<li>
<a href="{{ url('/') }}/rentals_and_sales">{{'Аренда и Продажа'|_}}</a>
</li>
<li>
<a href="{{ 'about'|page}}">{{'Подробней о нас'|_}}</a>