09:34:36.226 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
09:34:36.226 | trace | yii\base\Module::getModule | Loading module: debug |
09:34:36.226 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
09:34:36.227 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
09:34:36.227 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
09:34:36.227 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.227 | trace | yii\base\Module::getModule | Loading module: gii |
09:34:36.227 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
09:34:36.227 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
09:34:36.227 | trace | yii\web\Application::handleRequest | Route requested: 'v2/approve/save-edit' |
09:34:36.227 | trace | yii\base\Module::getModule | Loading module: v2 |
09:34:36.228 | info | yii\web\Session::open | Session started |
09:34:36.229 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
09:34:36.231 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
09:34:36.233 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.234 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.234 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.234 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.234 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:34:36.235 | trace | yii\base\Controller::runAction | Route to run: v2/approve/save-edit |
09:34:36.236 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.237 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
09:34:36.237 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ApproveController::actionSaveEdit() |
09:34:36.237 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approves" WHERE "id"='1720' |
09:34:36.237 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.237 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.238 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.238 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.239 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Approves'. |
09:34:36.240 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2032') |
09:34:36.241 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3800') |
09:34:36.242 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5295) |
09:34:36.244 | info | yii\db\Command::execute | |
09:34:36.244 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=1720 |
09:34:36.245 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=17) AND ("id" IN (5, 226, 164, 179, 181, 166, 185, 191, 320, 369)) |
09:34:36.245 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.246 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=1720) AND ("term_id"=17) |
09:34:36.247 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.247 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_term_taxonomy_relationships'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
09:34:36.299 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_term_taxonomy_relationships'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
09:34:36.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
09:34:36.323 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='320') |
09:34:36.325 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_terms" WHERE "id"=17) |
09:34:36.328 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (17, 320, 1720) RETURNING "id" |
09:34:36.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.340 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\TermTaxonomyRelationships', 118024, 'a:7:{s:2:"id";i:118024;s:9:"object_id";i:1720;s:11:"taxonomy_id";s:3:"320";s:7:"term_id";i:17;s:5:"value";N;s:11:"object_type";N;s:9:"extra_int";N;}', '', 1000, '211.137.80.11') |
09:34:36.351 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2032') |
09:34:36.351 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3800') |
09:34:36.352 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5295) |
09:34:36.352 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_approves" SET "client_id"=2032, "project_id"=3800 WHERE "id"=1720 |
09:34:36.353 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Approves', 1720, 'a:0:{}', '', 1000, '211.137.80.11') |
09:34:36.355 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE "approve_id"=1720 ORDER BY "id" |
09:34:36.356 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.356 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.358 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE "approve_id"=1720 |
09:34:36.359 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_approve_verify_rels" ("approve_id", "user_id", "status") VALUES (1720, 1011, 0) |
09:34:36.371 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_approve_carbon_copy_rels" WHERE "approve_id"=1720 |
09:34:36.372 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.372 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_approve_carbon_copy_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
09:34:36.376 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_approve_carbon_copy_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
09:34:36.392 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.392 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
09:34:36.392 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_approve_carbon_copy_rels" WHERE "approve_id"=1720 |
09:34:36.393 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_approve_carbon_copy_rels" ("approve_id", "user_id") VALUES (1720, 1013), (1720, 5360), (1720, 5445) |
09:34:36.403 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
09:34:36.403 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
09:34:36.404 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 2, 1141, 'v2/approve/save-edit', '{"Approves":{"client_id":"2032","description":"\u82b3\u59d0\uff1a\n \u5ba2\u6237\u5df2\u7ecf\u4ed8\u6b3e\u5b8c\u6210\uff0c\u8bf7\u5e2e\u5fd9\u6309\u9644\u4ef6\u5185\u5bb9\u5907\u8d27\uff0c\u8c22\u8c22\uff01\n\u674e\u9896\uff1a\n \u9879\u76ee\u6ca1\u6709\u5408\u540c\uff0c\u5408\u540c\u9879\u76ee\u5185\u5bb9\u53ca\u91d1\u989d\u548c\u9644\u4ef6\u53bb\u5e74\u7684\u5185\u5bb9\u4e00\u81f4\uff0c\u5230\u8d27\u540e\u529e\u7406\u51fa\u5e93\uff0c0\u8d26\u671f\uff0c0\u79ef\u5206\uff0c\u8c22\u8c22\uff01","form_approveCarbonCopyRels":["1013","5360","5445"],"form_approveVerifyRels":["1011"],"form_type":"320","id":"1720","project_id":"3800","title":"\u7533\u8bf7\u7075\u72d0\u79d1\u6280\u9632\u706b\u5899\u7eed\u4fdd\u9879\u76ee\u5907\u8d27"},"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1750815232","token":"796f159f60f8941f8894ae6cd33ed4cc","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5ba1\u6279\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-06-25 09:34:36') RETURNING "id" |