Merge branch 'master' into add_document
This commit is contained in:
commit
ba96ae3119
@ -173,7 +173,7 @@ class UserQuestionnaire extends ActiveRecord
|
||||
*/
|
||||
public static function getQuestionnaireId($uuid)
|
||||
{
|
||||
return ArrayHelper::getValue(self::find()->where(['uuid' => $uuid])->one(), 'id');
|
||||
return ArrayHelper::getValue(self::find()->where(['uuid' => $uuid])->one(), 'questionnaire_id');
|
||||
}
|
||||
|
||||
public static function findActiveUserQuestionnaires($user_id): array
|
||||
|
@ -91973,3 +91973,27 @@
|
||||
127.0.0.1 - - [15/Feb/2022:12:35:18 +0300] "GET /api/reports/find-by-date?user_card_id=17&date=2022-02-14 HTTP/1.1" 404 169 "-" "PostmanRuntime/7.28.4"
|
||||
127.0.0.1 - - [15/Feb/2022:12:35:30 +0300] "GET /api/reports/find-by-date?user_card_id=17&date=2022-02-14 HTTP/1.1" 200 1059 "-" "PostmanRuntime/7.28.4"
|
||||
127.0.0.1 - - [15/Feb/2022:12:36:03 +0300] "GET /api/reports/find-by-date?user_card_id=17&date=2022-02-14 HTTP/1.1" 200 1059 "-" "PostmanRuntime/7.28.4"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:38 +0300] "GET /reports/reports/index?id=3 HTTP/1.1" 200 9465 "http://guild.loc/reports/reports/view?id=3" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:38 +0300] "GET /assets/71772193/css/bootstrap.css HTTP/1.1" 200 32768 "http://guild.loc/reports/reports/index?id=3" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:38 +0300] "GET /css/site.css HTTP/1.1" 200 2011 "http://guild.loc/reports/reports/index?id=3" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:38 +0300] "GET /js/site.js HTTP/1.1" 200 596 "http://guild.loc/reports/reports/index?id=3" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:38 +0300] "GET /assets/71772193/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 200 18028 "http://guild.loc/assets/71772193/css/bootstrap.css" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:38 +0300] "GET /debug/default/toolbar?tag=620b974e7629a HTTP/1.1" 200 3405 "http://guild.loc/reports/reports/index?id=3" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:06:39 +0300] "GET /favicon.ico HTTP/1.1" 200 318 "http://guild.loc/reports/reports/index?id=3" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:10 +0300] "GET /gii/crud HTTP/1.1" 200 10333 "http://guild.loc/gii/crud" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:11 +0300] "GET /assets/7e18d02c/main.css HTTP/1.1" 200 4936 "http://guild.loc/gii/crud" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:11 +0300] "GET /assets/71772193/css/bootstrap.css HTTP/1.1" 200 32768 "http://guild.loc/gii/crud" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:11 +0300] "GET /assets/7e18d02c/logo.png HTTP/1.1" 200 6677 "http://guild.loc/gii/crud" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:11 +0300] "GET /assets/71772193/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 200 18028 "http://guild.loc/assets/71772193/css/bootstrap.css" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:11 +0300] "GET /debug/default/toolbar?tag=620b97e6e56bd HTTP/1.1" 200 3392 "http://guild.loc/gii/crud" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:11 +0300] "GET /favicon.ico HTTP/1.1" 200 318 "http://guild.loc/gii/crud" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /reports/reports/calendar?user_id=17 HTTP/1.1" 200 13412 "http://backend.guild.loc/reports/reports/list" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/c940762e/css/style.css HTTP/1.1" 200 6787 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/cd83ad4b/img/user2-160x160.jpg HTTP/1.1" 200 7070 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/71772193/css/bootstrap.css HTTP/1.1" 200 145933 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/ccdf1f3a/css/font-awesome.min.css HTTP/1.1" 200 31000 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /css/site.css HTTP/1.1" 200 805 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/cd83ad4b/css/AdminLTE.min.css HTTP/1.1" 200 106549 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/c940762e/js/script.js HTTP/1.1" 200 0 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:09:12 +0300] "GET /assets/cd83ad4b/css/skins/_all-skins.min.css HTTP/1.1" 200 32768 "http://backend.guild.loc/reports/reports/calendar?user_id=17" "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0"
|
||||
127.0.0.1 - - [15/Feb/2022:15:14:30 +0300] "GET /api/user-questionnaire/questionnaires-list?user_id=1 HTTP/1.1" 200 1113 "-" "PostmanRuntime/7.28.4"
|
||||
|
@ -15646,3 +15646,8 @@ Stack trace:
|
||||
2022/02/15 12:35:18 [error] 745#745: *209 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/reports/find-by-date?user_card_id=17&date=2022-02-14 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
|
||||
2022/02/15 12:35:30 [error] 745#745: *209 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/reports/find-by-date?user_card_id=17&date=2022-02-14 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
|
||||
2022/02/15 12:36:03 [error] 745#745: *209 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/reports/find-by-date?user_card_id=17&date=2022-02-14 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
|
||||
2022/02/15 15:06:38 [error] 745#745: *218 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /reports/reports/index?id=3 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc", referrer: "http://guild.loc/reports/reports/view?id=3"
|
||||
2022/02/15 15:06:38 [error] 745#745: *220 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /debug/default/toolbar?tag=620b974e7629a HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc", referrer: "http://guild.loc/reports/reports/index?id=3"
|
||||
2022/02/15 15:09:10 [error] 745#745: *222 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /gii/crud HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc", referrer: "http://guild.loc/gii/crud"
|
||||
2022/02/15 15:09:11 [error] 745#745: *225 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /debug/default/toolbar?tag=620b97e6e56bd HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc", referrer: "http://guild.loc/gii/crud"
|
||||
2022/02/15 15:14:30 [error] 745#745: *246 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/user-questionnaire/questionnaires-list?user_id=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
|
||||
|
@ -8,18 +8,18 @@ use yii\filters\auth\HttpBearerAuth;
|
||||
use yii\web\NotFoundHttpException;
|
||||
use yii\rest\Controller;
|
||||
|
||||
class AnswerController extends Controller
|
||||
class AnswerController extends ApiController
|
||||
{
|
||||
public function behaviors(): array
|
||||
{
|
||||
$behaviors = parent::behaviors();
|
||||
|
||||
$behaviors['authenticator']['authMethods'] = [
|
||||
HttpBearerAuth::className(),
|
||||
];
|
||||
|
||||
return $behaviors;
|
||||
}
|
||||
// public function behaviors(): array
|
||||
// {
|
||||
// $behaviors = parent::behaviors();
|
||||
//
|
||||
// $behaviors['authenticator']['authMethods'] = [
|
||||
// HttpBearerAuth::className(),
|
||||
// ];
|
||||
//
|
||||
// return $behaviors;
|
||||
// }
|
||||
|
||||
public function verbs(): array
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ use yii\filters\auth\HttpBearerAuth;
|
||||
use yii\rest\Controller;
|
||||
use yii\web\NotFoundHttpException;
|
||||
|
||||
class QuestionController extends Controller
|
||||
class QuestionController extends ApiController
|
||||
{
|
||||
public function behaviors()
|
||||
{
|
||||
|
@ -48,7 +48,7 @@ class UserController extends ActiveController
|
||||
'X-Requested-With'
|
||||
],
|
||||
]
|
||||
]
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ use yii\filters\auth\HttpBearerAuth;
|
||||
use yii\rest\Controller;
|
||||
use yii\web\NotFoundHttpException;
|
||||
|
||||
class UserQuestionnaireController extends Controller
|
||||
class UserQuestionnaireController extends ApiController
|
||||
{
|
||||
public function behaviors()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user