14:38:41.795 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
14:38:41.795 | trace | yii\base\Module::getModule | Loading module: debug |
14:38:41.795 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
14:38:41.796 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
14:38:41.796 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
14:38:41.796 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.796 | trace | yii\base\Module::getModule | Loading module: gii |
14:38:41.796 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
14:38:41.796 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
14:38:41.796 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-client' |
14:38:41.796 | trace | yii\base\Module::getModule | Loading module: v2 |
14:38:41.797 | info | yii\web\Session::open | Session started |
14:38:41.797 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
14:38:41.800 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd' |
14:38:41.805 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.806 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:38:41.807 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.807 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:38:41.807 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:38:41.809 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-client |
14:38:41.809 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.811 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:38:41.811 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfClient() |
14:38:41.811 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3337') AND ("deleted"=FALSE) |
14:38:41.813 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.813 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:38:41.814 | 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"='3337' 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" |
14:38:41.817 | 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"='3337' 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 |
14:38:41.825 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.825 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:38:41.825 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
14:38:41.826 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:38:41.826 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=6010 ORDER BY "key_role" |
14:38:41.827 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6010 |
14:38:41.828 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=6010) GROUP BY "object_id" |
14:38:41.848 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6010 |
14:38:41.849 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (5, 226, 135, 140, 184, 189, 349)) ORDER BY "sort" |
14:38:41.862 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6010 |
14:38:41.866 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (5, 226, 135, 140, 184, 189, 349)) ORDER BY "sort" |
14:38:41.867 | 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"=6010) GROUP BY "object_id" |
14:38:41.897 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientContact |
14:38:41.897 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
14:38:41.897 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
14:38:41.897 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:38:41.897 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.898 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.900 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:38:41.901 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:38:41.901 | 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', 1000, 6, 166, 'v2/contact/of-client', '{"id":"3337","page":"1","posttime":"1751611122","access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"6","version_code":"166","token":"d32cbc93f546794530f8f11359c3e541"}', '{"code":200,"data":{"list":[{"id":6010,"name":"\u6bdb\u6653\u5149","email":"","pinyin_shortcut":"mxg","sex":"M","birth_date":"2025-07-04","department":"","job_position":"","mobile":"","telephone":"","client_id":3337,"supplier_id":null,"created_by":1000,"created_at":"2025-07-04 10:57:08","updated_at":"2025-07-04 10:57:08","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"mao","pinyin2":"xiao","pinyin3":"guang","pinyin4":null,"namecut1":"\u6bdb","namecut2":"\u6653","namecut3":"\u5149","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":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F"},"keyRoles":[],"mobiles":[{"id":6793,"contact_id":6010,"mobile":"13355220000","mp_open_id":null,"mobile_display":"13355220000"}],"commentCount":null,"contactKeyRoles":[{"id":135,"key":135,"name":"\u91c7\u8d2d\u51b3\u7b56\u4eba"}],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u6bdb\u6653\u5149","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":""}]}', FALSE, '2025-07-04 14:38:41') RETURNING "id" |