| 22:51:42.356 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 22:51:42.356 | trace | yii\base\Module::getModule | Loading module: debug |
| 22:51:42.357 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 22:51:42.357 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 22:51:42.357 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 22:51:42.357 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.358 | info | time tracing start | 1784213502358208768 |
| 22:51:42.358 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 22:51:42.358 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-supplier' |
| 22:51:42.358 | trace | yii\base\Module::getModule | Loading module: v2 |
| 22:51:42.359 | info | yii\web\Session::open | Session started |
| 22:51:42.360 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 22:51:42.360 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='Q_7DD5LA0njCol9o5skCibRkap3ZqeYZ' |
| 22:51:42.361 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 22:51:42.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 22:51:42.363 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1015 |
| 22:51:42.364 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-supplier |
| 22:51:42.364 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.366 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 22:51:42.366 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewClientContact |
| 22:51:42.366 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 22:51:42.366 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 22:51:42.366 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfSupplier() |
| 22:51:42.366 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
| 22:51:42.367 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.367 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 22:51:42.368 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT
c.*
FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_suppliers" "supplier" ON supplier.id = c.supplier_id WHERE "supplier"."id"='431' GROUP BY "c"."id" ORDER BY (case c.user_status when 3 then 1 when 1 then 0 else c.user_status end) DESC, c.updated_at DESC) "c" |
| 22:51:42.369 | info | yii\db\Command::query | SELECT
c.*
FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_suppliers" "supplier" ON supplier.id = c.supplier_id WHERE "supplier"."id"='431' GROUP BY "c"."id" ORDER BY (case c.user_status when 3 then 1 when 1 then 0 else c.user_status end) DESC, c.updated_at DESC LIMIT 10 |
| 22:51:42.371 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.371 | 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_contacts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 22:51:42.377 | 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_contacts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 22:51:42.394 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 22:51:42.394 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 22:51:42.395 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
| 22:51:42.396 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 22:51:42.396 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=3776 ORDER BY "key_role" |
| 22:51:42.397 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=3776 |
| 22:51:42.398 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=3776) GROUP BY "object_id" |
| 22:51:42.419 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1015 AND is_read = false) AND ("object_id"=3776) GROUP BY "object_id" |
| 22:51:42.437 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.438 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateSupplierContact |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteSupplierContact |
| 22:51:42.439 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 22:51:42.440 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 22:51:42.440 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 22:51:42.441 | 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", "duration") VALUES (200, 'a57be577deb434', 1015, 2, 1161, 'v2/contact/of-supplier', '{"access_token":"Q_7DD5LA0njCol9o5skCibRkap3ZqeYZ","device_type":"2","id":"431","posttime":"1784213504","token":"4b31da2500d5cf342319d34c622f0ddd","version_code":"1161"}', '{"code":200,"data":{"list":[{"id":3776,"name":"\u90ed\u82b3\u541b","email":"","pinyin_shortcut":"gfj","sex":"F","birth_date":null,"department":"\u9500\u552e\u90e8","job_position":"\u6cd5\u4eba","mobile":"","telephone":"","client_id":null,"supplier_id":431,"created_by":1011,"created_at":"2021-09-28 15:44:48","updated_at":"2021-09-28 15:45:17","user_status":2,"description":"","contact_type":"2","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"guo","pinyin2":"fang","pinyin3":"jun","pinyin4":null,"namecut1":"\u90ed","namecut2":"\u82b3","namecut3":"\u541b","namecut4":null,"is_mp_bind":false,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c","created_by":1000,"created_at":"2016-10-31 21:28:36","updated_at":"2016-10-31 21:28:40"},"createdBy":{"id":1011,"email":"hanyafang@toast.com.cn","name":"\u97e9\u96c5\u82b3","user_status":"1","pinyin_shortcut":"hyf","sex":"F","birth_date":"1987-03-07","entry_date":"2011-08-08","department_id":3,"department_position_id":18,"mobile":"13126639155","telephone":"88864628","created_at":"2017-02-06 13:11:52","updated_at":"2024-11-01 17:28:04","id_number":"131128198703076043","native_place":"\u6cb3\u5317\u7701\u8861\u6c34\u5e02","graduate_school":"\u6cb3\u5317\u5eca\u574a\u5e08\u8303\u5b66\u9662","specialty":"\u751f\u7269\u6280\u672f\u5de5\u7a0b","education":"\u672c\u79d1","telephone_area_code":"010","telephone_extension_number":"831","leave_date":null,"pinyin1":"han","pinyin2":"ya","pinyin3":"fang","pinyin4":null,"namecut1":"\u97e9","namecut2":"\u96c5","namecut3":"\u82b3","namecut4":null,"budget_count":"0","profit_count":"0","bargain_count":"0","opportunity_budget_count":"0","opportunity_count":"0","work_log_score":"0","e_implement_count":"0","e_budget_count":"0","e_profit_count":"0","e_client_count":"0","e_project_count":"0","e_point_count":"0","visit_resource_sync":false,"client_lock":false,"view_public":true,"client_remind_alarm_before":null,"work_on_remind":true,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true,"view_product_cost":true},"keyRoles":[],"mobiles":[{"id":4589,"contact_id":3776,"mobile":"13681307975","mp_open_id":null}],"commentCount":null,"unreadComments":null,"can_update":true,"can_delete":false,"unread":0}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"117.133.84.85","ua":"jinchangxiao\/2.3.158 (iPhone 12; iOS 26.5.2; Scale\/3.00)"}', FALSE, '2026-07-16 22:51:42', 82943232) RETURNING "id" |