| 15:59:38.131 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 15:59:38.131 | trace | yii\base\Module::getModule | Loading module: debug |
| 15:59:38.132 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 15:59:38.133 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 15:59:38.134 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 15:59:38.137 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.144 | info | time tracing start | 1784015978144622080 |
| 15:59:38.144 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 15:59:38.144 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-client' |
| 15:59:38.144 | trace | yii\base\Module::getModule | Loading module: v2 |
| 15:59:38.146 | info | yii\web\Session::open | Session started |
| 15:59:38.147 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 15:59:38.149 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm' |
| 15:59:38.168 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.176 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:59:38.186 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.188 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:59:38.196 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 15:59:38.198 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-client |
| 15:59:38.199 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.201 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 15:59:38.201 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfClient() |
| 15:59:38.201 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3435') AND ("deleted"=FALSE) |
| 15:59:38.202 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.203 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:59:38.203 | 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"='3435' 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" |
| 15:59:38.207 | 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"='3435' 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 |
| 15:59:38.209 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.210 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:59:38.211 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
| 15:59:38.228 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011 |
| 15:59:38.244 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=6223 ORDER BY "key_role" |
| 15:59:38.246 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6223 |
| 15:59:38.251 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=6223) GROUP BY "object_id" |
| 15:59:38.301 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6223 |
| 15:59:38.301 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (1, 185, 369, 349)) ORDER BY "sort" |
| 15:59:38.302 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6223 |
| 15:59:38.302 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (1, 185, 369, 349)) ORDER BY "sort" |
| 15:59:38.303 | 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"=6223) GROUP BY "object_id" |
| 15:59:38.337 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientContact |
| 15:59:38.338 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 15:59:38.338 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
| 15:59:38.338 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 15:59:38.338 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.339 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.342 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:59:38.342 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:59:38.343 | 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, 0, 276, 'v2/contact/of-client', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"0","version_code":"276","id":"3435","page":"1","token":"490542e6546389bc732727e09ea796c4","posttime":"1784015977","pagesize":"10"}', '{"code":200,"data":{"list":[{"id":6223,"name":"\u8d75\u7389\u5c71","email":"zhaoyushan@sngio.com","pinyin_shortcut":"zys","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":3435,"supplier_id":null,"created_by":1011,"created_at":"2026-01-22 11:51:45","updated_at":"2026-01-22 11:51:45","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"zhao","pinyin2":"yu","pinyin3":"shan","pinyin4":null,"namecut1":"\u8d75","namecut2":"\u7389","namecut3":"\u5c71","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":7006,"contact_id":6223,"mobile":"13718992179","mp_open_id":null,"mobile_display":"13718992179"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u8d75\u7389\u5c71","email_display":"zhaoyushan@sngio.com","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":"39.156.194.178","ua":"jinchangxiao\/2.3.176 (HUAWEIVOG-AL00; Android 10)"}', FALSE, '2026-07-14 15:59:38', 198195968) RETURNING "id" |