transaction
This commit is contained in:
@ -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>',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
|
1
app/modules/tgbot/views/tgbot/main/btn.php
Normal file
1
app/modules/tgbot/views/tgbot/main/btn.php
Normal file
@ -0,0 +1 @@
|
||||
<a class="btn btn-primary" href="/miniapp/scan">Сканировать</a>
|
Reference in New Issue
Block a user