transaction

This commit is contained in:
2025-01-20 00:12:30 +03:00
parent 1ffa0581bf
commit 485c11de5f
16 changed files with 589 additions and 1 deletions

View File

@ -2,7 +2,19 @@
namespace app\modules\tgbot\controllers;
use app\modules\tgbot\models\Tgbot;
class TgBotRestController extends \kernel\app_modules\tgbot\controllers\TgBotRestController
{
public function actionGetScanBtn(int $id): void
{
$dialog = Tgbot::where("dialog_id", $id)->first();
if ($dialog){
$this->renderApi([
'html' => '<a class="btn btn-primary" href="/miniapp/scan">Сканировать</a>',
]);
}
}
}

View File

@ -2,6 +2,7 @@
namespace app\modules\tgbot\controllers;
use app\modules\tgbot\models\Tgbot;
use Cassandra\Decimal;
use kernel\app_modules\tag\service\TagService;
use kernel\Controller;

View File

@ -0,0 +1 @@
<a class="btn btn-primary" href="/miniapp/scan">Сканировать</a>