10:22:58.498 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:22:58.498 | trace | yii\base\Module::getModule | Loading module: debug |
10:22:58.499 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:22:58.499 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:22:58.499 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:22:58.499 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.499 | trace | yii\base\Module::getModule | Loading module: gii |
10:22:58.499 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:22:58.499 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:22:58.499 | trace | yii\web\Application::handleRequest | Route requested: 'v2/case/accept' |
10:22:58.499 | trace | yii\base\Module::getModule | Loading module: v2 |
10:22:58.500 | info | yii\web\Session::open | Session started |
10:22:58.500 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:22:58.502 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='LaARkbjpq8ODkVzzYWTT4va5Qt3CsuSp' |
10:22:58.505 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.505 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.506 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.506 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.506 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.507 | trace | yii\base\Controller::runAction | Route to run: v2/case/accept |
10:22:58.507 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: createTicket |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
10:22:58.508 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
10:22:58.508 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\CaseController::actionAccept() |
10:22:58.508 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8279' |
10:22:58.509 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.509 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.509 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_assignments" WHERE (("engineer_id"=1017) AND ("assignment_status"=1)) AND ("case_id"=8279) ORDER BY "assigned_at" DESC |
10:22:58.510 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.510 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.511 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_assignments" WHERE ("case_id"=8279) AND ("engineer_id"=1017) AND ("assignment_status"=1) ORDER BY "assigned_at" DESC |
10:22:58.512 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_case_assignments" SET "assignment_status"=2, "updated_at"='now()' WHERE "id"=8320 |
10:22:58.514 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.515 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.515 | 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\CaseAssignments', 8320, 'a:1:{s:17:"assignment_status";i:2;}', '', 1017, '223.104.40.121') |
10:22:58.517 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
10:22:58.518 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.518 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.518 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.518 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.519 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.519 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (6, 'case_status', 8279, 18, 1017, 'now()', '[3]', '[2]', '{"d1":"\u8f66\u660e\u98de","d2":"\u63a5\u53d7\u4e86","d3":"Case","d4":[]}') |
10:22:58.522 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.522 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.522 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (6, 'case_status', 8279, 18, 1017, 'now()', '[3]', '[2]', array[1017,1004], '{"d1":"\u8f66\u660e\u98de","d2":"\u63a5\u53d7\u4e86","d3":"Case","d4":[]}') |
10:22:58.525 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.525 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 2815, 10, 8279, 18, 1017, '[8279]', '[8279]', '{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
10:22:58.526 | 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\ObjectChangeLogs', 510502, 'a:13:{s:2:"id";i:510502;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[8279]";s:9:"new_value";s:6:"[8279]";s:11:"description";s:103:"{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1017;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1017, '223.104.40.121') |
10:22:58.527 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.528 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 3811, 1, 8279, 18, 1017, '[8279]', '[8279]', '{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
10:22:58.528 | 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\ObjectChangeLogs', 510503, 'a:13:{s:2:"id";i:510503;s:9:"object_id";i:3811;s:11:"object_type";i:1;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[8279]";s:9:"new_value";s:6:"[8279]";s:11:"description";s:103:"{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1017;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1017, '223.104.40.121') |
10:22:58.529 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3811 |
10:22:58.530 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.530 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.531 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
10:22:58.531 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.532 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (2, 'update', 3811, 1, 8279, 18, 1017, '8279', '8279', array[1004], '{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
10:22:58.533 | 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\UserActionLogs', 137121, 'a:15:{s:2:"id";i:137121;s:9:"object_id";i:3811;s:11:"object_type";i:1;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:4:"8279";s:9:"new_value";s:4:"8279";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1004]";s:6:"params";a:0:{}}s:11:"description";s:103:"{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1017;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1017, '223.104.40.121') |
10:22:58.534 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.534 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 199, 102, 8279, 18, 1017, '[8279]', '[8279]', '{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
10:22:58.535 | 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\ObjectChangeLogs', 510504, 'a:13:{s:2:"id";i:510504;s:9:"object_id";i:199;s:11:"object_type";i:102;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[8279]";s:9:"new_value";s:6:"[8279]";s:11:"description";s:103:"{"d1":"\u8f66\u660e\u98de","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1017;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1017, '223.104.40.121') |
10:22:58.536 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_cases" SET "case_status"=3, "updated_at"='now()' WHERE "id"=8279 |
10:22:58.537 | 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\Cases', 8279, 'a:2:{s:11:"case_status";i:3;s:8:"start_at";s:19:"2025-07-11 08:00:00";}', '', 1017, '223.104.40.121') |
10:22:58.538 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:22:58.538 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id"=8279 |
10:22:58.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.539 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.539 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279 |
10:22:58.541 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017) |
10:22:58.541 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1017, '18', 8279, '车明飞接受了一个Case', TRUE, '经常娜娜从哪方面') RETURNING "id" |
10:22:58.544 | 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\Comments', 170398, 'a:11:{s:2:"id";i:170398;s:9:"object_id";i:8279;s:11:"object_type";s:2:"18";s:6:"parent";N;s:11:"description";s:28:"车明飞接受了一个Case";s:10:"created_by";i:1017;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:24:"经常娜娜从哪方面";}', '', 1017, '223.104.40.121') |
10:22:58.545 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.545 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.545 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (8279, '18', 170398, 1000), (8279, '18', 170398, 1004), (8279, '18', 170398, 5250), (8279, '18', 170398, 5016) |
10:22:58.550 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id" IN (1000, 1004, 5250, 5016)) AND ("id" != 1017) AND (channel_id IS NOT NULL) |
10:22:58.552 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279 |
10:22:58.552 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
10:22:58.558 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:22:58.558 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:22:58.558 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:22:58.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:22:58.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:22:58.559 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:22:58.559 | info | yii\db\Command::query | SELECT * FROM "global"."tbl_enterprises" WHERE "id"=2 |
10:22:58.560 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.560 | 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_enterprises'
and d.nspname = 'global'
ORDER BY
a.attnum; |
10:22:58.566 | 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_enterprises'
and ns.nspname='global'
order by
fns.nspname, fc.relname, a.attnum |
10:22:58.575 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.575 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
10:22:58.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:22:58.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:22:58.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:22:58.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:22:58.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:22:58.577 | 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', 1017, 2, 1141, 'v2/case/accept', '{"access_token":"LaARkbjpq8ODkVzzYWTT4va5Qt3CsuSp","device_type":"2","id":"8279","posttime":"1752200576","token":"69cf36f81df11ff4e679ede949200536","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u60a8\u5df2\u63a5\u53d7\u6b64Case","error":""}]}', FALSE, '2025-07-11 10:22:58') RETURNING "id" |