10:20:58.983 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:20:58.983 | trace | yii\base\Module::getModule | Loading module: debug |
10:20:58.984 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:20:58.984 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:20:58.984 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:20:58.984 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:58.984 | trace | yii\base\Module::getModule | Loading module: gii |
10:20:58.985 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:20:58.985 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:20:58.985 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-client' |
10:20:58.985 | trace | yii\base\Module::getModule | Loading module: v2 |
10:20:58.986 | info | yii\web\Session::open | Session started |
10:20:58.987 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:20:58.992 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
10:20:59.004 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.006 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:20:59.010 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.012 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:20:59.012 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:20:59.015 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-client |
10:20:59.015 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.017 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:20:59.017 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfClient() |
10:20:59.017 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3304') AND ("deleted"=FALSE) |
10:20:59.020 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.020 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:20:59.022 | 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"='3304' 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" |
10:20:59.029 | 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"='3304' 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 |
10:20:59.032 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.032 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:20:59.035 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
10:20:59.043 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1011, 1001) |
10:20:59.055 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id" IN (5963, 5883) ORDER BY "key_role" |
10:20:59.076 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (5963, 5883) |
10:20:59.080 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (5963, 5883)) GROUP BY "object_id" |
10:20:59.118 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5963, 5883) |
10:20:59.119 | 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, 184, 189, 349, 1, 160, 140, 185, 191, 369)) ORDER BY "sort" |
10:20:59.120 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5963, 5883) |
10:20:59.121 | 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, 184, 189, 349, 1, 160, 140, 185, 191, 369)) ORDER BY "sort" |
10:20:59.121 | 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" IN (5963, 5883)) GROUP BY "object_id" |
10:20:59.168 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientContact |
10:20:59.168 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
10:20:59.168 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
10:20:59.168 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:20:59.168 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.169 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.171 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:20:59.171 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:20:59.171 | 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, 0, 262, 'v2/contact/of-client', '{"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"0","version_code":"262","id":"3304","page":"1","token":"1f7e640d31058cc371fc8f781a6fe91f","posttime":"1751422858","pagesize":"10"}', '{"code":200,"data":{"list":[{"id":5963,"name":"\u6768\u4e07\u6b63","email":"","pinyin_shortcut":"ywz","sex":"M","birth_date":null,"department":"\u91c7\u8d2d\u90e8","job_position":"\u52a9\u7406","mobile":"","telephone":"","client_id":3304,"supplier_id":null,"created_by":1011,"created_at":"2024-12-11 11:12:14","updated_at":"2024-12-11 11:12:14","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"yang","pinyin2":"wan","pinyin3":"zheng","pinyin4":null,"namecut1":"\u6768","namecut2":"\u4e07","namecut3":"\u6b63","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":6752,"contact_id":5963,"mobile":"13911415191","mp_open_id":null,"mobile_display":"13911415191"}],"commentCount":null,"contactKeyRoles":[{"id":160,"key":160,"name":"\u666e\u901a\u4eba"}],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u6768\u4e07\u6b63","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":5883,"name":"\u5b59\u7ecf\u7406","email":"","pinyin_shortcut":"sjl","sex":"F","birth_date":null,"department":"\u91c7\u8d2d\u90e8","job_position":"\u91c7\u8d2d\u7ecf\u7406","mobile":"","telephone":"","client_id":3304,"supplier_id":null,"created_by":1001,"created_at":"2024-09-19 15:34:42","updated_at":"2024-09-19 15:34:42","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"sun","pinyin2":"jing","pinyin3":"li","pinyin4":null,"namecut1":"\u5b59","namecut2":"\u7ecf","namecut3":"\u7406","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":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M"},"keyRoles":[],"mobiles":[{"id":6674,"contact_id":5883,"mobile":"17611733637","mp_open_id":null,"mobile_display":"17611733637"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u5b59\u7ecf\u7406","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-02 10:20:59') RETURNING "id" |