has card
This commit is contained in:
1 parent
63f88f425e
commit
7e9d2cf5a7
2 files changed
+17
-2
No files matched your search
@@ -49,10 +49,14 @@ class TgBotRestController extends RestController
|
||||
|
||||
$this->model->save();
|
||||
|
||||
$this->renderApi($this->model->toArray());
|
||||
$resArr = $tgBot->toArray();
|
||||
$resArr['has_card'] = CardService::userHasCard($resArr['user_id']);
|
||||
$this->renderApi($resArr);
|
||||
}
|
||||
$resArr = $tgBot->toArray();
|
||||
$resArr['has_card'] = CardService::userHasCard($resArr['user_id']);
|
||||
|
||||
$this->renderApi($tgBot->toArray());
|
||||
$this->renderApi($resArr);
|
||||
}
|
||||
|
||||
#[NoReturn] public function actionCreateCard(): void
|
||||
|
||||
Reference in new issue
Block a user