| 18:40:44.355 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 18:40:44.355 | trace | yii\base\Module::getModule | Loading module: debug |
| 18:40:44.355 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 18:40:44.356 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 18:40:44.356 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 18:40:44.356 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.356 | info | time tracing start | 1780310444356898048 |
| 18:40:44.357 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 18:40:44.357 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-client' |
| 18:40:44.357 | trace | yii\base\Module::getModule | Loading module: v2 |
| 18:40:44.357 | info | yii\web\Session::open | Session started |
| 18:40:44.358 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 18:40:44.359 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='QKDY_CpNUpX4m5jisn-MMZOAmIh4LXYL' |
| 18:40:44.361 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.361 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 18:40:44.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 18:40:44.362 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
| 18:40:44.363 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-client |
| 18:40:44.363 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.365 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 18:40:44.365 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfClient() |
| 18:40:44.365 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3424') AND ("deleted"=FALSE) |
| 18:40:44.365 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.366 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 18:40:44.366 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT
c.*,
CASE WHEN count(cm.id) != 0 THEN 1 ELSE null END as mp_open_id
FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "client"."id"='3424' 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" |
| 18:40:44.369 | info | yii\db\Command::query | SELECT
c.*,
CASE WHEN count(cm.id) != 0 THEN 1 ELSE null END as mp_open_id
FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "client"."id"='3424' 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 |
| 18:40:44.371 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.371 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 18:40:44.372 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
| 18:40:44.372 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 18:40:44.373 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=6192 ORDER BY "key_role" |
| 18:40:44.375 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6192 |
| 18:40:44.376 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=6192) GROUP BY "object_id" |
| 18:40:44.405 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6192 |
| 18:40:44.406 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (1, 184, 349, 356)) ORDER BY "sort" |
| 18:40:44.406 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6192 |
| 18:40:44.406 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (1, 184, 349, 356)) ORDER BY "sort" |
| 18:40:44.407 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 5064 AND is_read = false) AND ("object_id"=6192) GROUP BY "object_id" |
| 18:40:44.442 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientContact |
| 18:40:44.442 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 18:40:44.442 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 18:40:44.442 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.443 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.445 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 18:40:44.445 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 18:40:44.445 | 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', 5064, 2, 1155, 'v2/contact/of-client', '{"access_token":"QKDY_CpNUpX4m5jisn-MMZOAmIh4LXYL","device_type":"2","id":"3424","page":"1","posttime":"1780310400","token":"269d181ed5c4ee11d7a007ebdcc78fdf","version_code":"1155"}', '{"code":200,"data":{"list":[{"id":6192,"name":"\u6797\u5973\u58eb","email":"","pinyin_shortcut":"lns","sex":"F","birth_date":null,"department":null,"job_position":null,"mobile":"18519265219","telephone":"","client_id":3424,"supplier_id":null,"created_by":1011,"created_at":"2025-11-18 14:53:54","updated_at":"2025-11-18 14:53:54","user_status":2,"description":null,"contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"lin","pinyin2":"nyu","pinyin3":"shi","pinyin4":null,"namecut1":"\u6797","namecut2":"\u5973","namecut3":"\u58eb","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,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F"},"keyRoles":[],"mobiles":[{"id":6974,"contact_id":6192,"mobile":"18519265219","mp_open_id":null,"mobile_display":"18519265219"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u6797\u5973\u58eb","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"223.104.44.100","ua":"jinchangxiao\/2.3.153 (iPhone 12; iOS 18.6.2; Scale\/3.00)"}', FALSE, '2026-06-01 18:40:44', 88902144) RETURNING "id" |