| 20:27:19.519 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 20:27:19.519 | trace | yii\base\Module::getModule | Loading module: debug |
| 20:27:19.519 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 20:27:19.520 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 20:27:19.520 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 20:27:19.520 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.520 | info | time tracing start | 1784032039520936960 |
| 20:27:19.521 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 20:27:19.521 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-client' |
| 20:27:19.521 | trace | yii\base\Module::getModule | Loading module: v2 |
| 20:27:19.521 | info | yii\web\Session::open | Session started |
| 20:27:19.523 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 20:27:19.523 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm' |
| 20:27:19.524 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.524 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:27:19.524 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.525 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:27:19.525 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 20:27:19.526 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-client |
| 20:27:19.526 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.528 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 20:27:19.528 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfClient() |
| 20:27:19.528 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3411') AND ("deleted"=FALSE) |
| 20:27:19.529 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.529 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:27:19.529 | 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"='3411' 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" |
| 20:27:19.532 | 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"='3411' 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 |
| 20:27:19.534 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.534 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:27:19.535 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
| 20:27:19.535 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 20:27:19.536 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=6169 ORDER BY "key_role" |
| 20:27:19.537 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6169 |
| 20:27:19.537 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=6169) GROUP BY "object_id" |
| 20:27:19.560 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6169 |
| 20:27:19.561 | 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)) ORDER BY "sort" |
| 20:27:19.561 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6169 |
| 20:27:19.562 | 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)) ORDER BY "sort" |
| 20:27:19.562 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=6169) GROUP BY "object_id" |
| 20:27:19.580 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientContact |
| 20:27:19.580 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 20:27:19.580 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 20:27:19.580 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 20:27:19.580 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.581 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.583 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 20:27:19.583 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 20:27:19.584 | 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', 1000, 2, 1161, 'v2/contact/of-client', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"2","id":"3411","page":"1","posttime":"1784032000","token":"70c54e1c5c2f8c133ecd3aac0a2bd6b3","version_code":"1161"}', '{"code":200,"data":{"list":[{"id":6169,"name":"\u6c6a\u51a0\u6743","email":"","pinyin_shortcut":"wgq","sex":"M","birth_date":null,"department":null,"job_position":null,"mobile":"13521525850","telephone":"","client_id":3411,"supplier_id":null,"created_by":1011,"created_at":"2025-10-27 17:01:21","updated_at":"2025-10-27 17:01:21","user_status":2,"description":null,"contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"wang","pinyin2":"guan","pinyin3":"quan","pinyin4":null,"namecut1":"\u6c6a","namecut2":"\u51a0","namecut3":"\u6743","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":6951,"contact_id":6169,"mobile":"13521525850","mp_open_id":null,"mobile_display":"13521525850"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u6c6a\u51a0\u6743","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":"18.166.215.198","ua":"jinchangxiao\/2.3.158 (iPhone 12 mini; iOS 26.2; Scale\/3.00)"}', FALSE, '2026-07-14 20:27:19', 63194880) RETURNING "id" |