Time | Level | Category | Message |
---|---|---|---|
17:27:48.317 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:27:48.317 | trace | yii\base\Module::getModule | Loading module: debug |
17:27:48.318 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:27:48.319 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:27:48.319 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:27:48.319 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.320 | trace | yii\base\Module::getModule | Loading module: gii |
17:27:48.320 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:27:48.320 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:27:48.320 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/of-client' |
17:27:48.320 | trace | yii\base\Module::getModule | Loading module: v2 |
17:27:48.320 | info | yii\web\Session::open | Session started |
17:27:48.321 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:27:48.323 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc' |
17:27:48.327 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.328 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:27:48.329 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.329 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:27:48.329 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:27:48.332 | trace | yii\base\Controller::runAction | Route to run: v2/contact/of-client |
17:27:48.332 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewClientContact |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesManager |
17:27:48.334 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:27:48.334 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionOfClient() |
17:27:48.334 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='2094') AND ("deleted"=FALSE) |
17:27:48.336 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.336 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:27:48.337 | 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"='2094' 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" |
17:27:48.340 | 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"='2094' 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 |
17:27:48.343 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.343 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:27:48.344 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
17:27:48.344 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5413, 1005) |
17:27:48.345 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id" IN (5925, 4825, 4742, 4741, 4668, 4454) ORDER BY "key_role" |
17:27:48.346 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (5925, 4825, 4742, 4741, 4668, 4454) |
17:27:48.347 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (5925, 4825, 4742, 4741, 4668, 4454)) GROUP BY "object_id" |
17:27:48.371 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5925, 4825, 4742, 4741, 4668, 4454) |
17:27:48.372 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (184, 189, 1, 197, 199, 5, 226, 308, 203, 160, 140, 136, 2, 343, 349, 377)) ORDER BY "sort" |
17:27:48.373 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5925, 4825, 4742, 4741, 4668, 4454) |
17:27:48.374 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (184, 189, 1, 197, 199, 5, 226, 308, 203, 160, 140, 136, 2, 343, 349, 377)) ORDER BY "sort" |
17:27:48.374 | info | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1004 AND is_read = false) AND ("object_id" IN (5925, 4825, 4742, 4741, 4668, 4454)) GROUP BY "object_id" |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClientContact |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesManager |
17:27:48.399 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:27:48.399 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.402 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteClientContact |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewContactInfo |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
17:27:48.403 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:27:48.404 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:27:48.404 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:27:48.404 | 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', 1004, 2, 1141, 'v2/contact/of-client', '{"access_token":"NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc","device_type":"2","id":"2094","page":"1","posttime":"1752398848","token":"e3dca4d02b5e6fcc9cabe2bda4b21bd3","version_code":"1141"}', '{"code":200,"data":{"list":[{"id":5925,"name":"\u674e\u5f6c","email":"","pinyin_shortcut":"lb","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"8851","client_id":2094,"supplier_id":null,"created_by":5413,"created_at":"2024-11-06 10:26:15","updated_at":"2024-11-06 10:26:15","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"010","telephone_extension_number":"3708","mp_open_id":null,"pinyin1":"li","pinyin2":"bin","pinyin3":null,"pinyin4":null,"namecut1":"\u674e","namecut2":"\u5f6c","namecut3":null,"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":5413,"key":5413,"name":"\u8096\u6167\u4e3d","sex":"F"},"keyRoles":[],"mobiles":[],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":false,"can_delete":false,"name_display":"\u674e\u5f6c","telephone_display":"010-8851-3708","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":4825,"name":"\u97e9\u4e2d\u534e","email":"","pinyin_shortcut":"hzh","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"68420099","client_id":2094,"supplier_id":null,"created_by":1005,"created_at":"2023-09-15 15:58:33","updated_at":"2023-09-15 15:58:33","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"010","telephone_extension_number":"","mp_open_id":null,"pinyin1":"han","pinyin2":"zhong","pinyin3":"hua","pinyin4":null,"namecut1":"\u97e9","namecut2":"\u4e2d","namecut3":"\u534e","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":1005,"key":1005,"name":"\u8d75\u6657\u7131","sex":"F"},"keyRoles":[],"mobiles":[],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":false,"can_delete":false,"name_display":"\u97e9\u4e2d\u534e","telephone_display":"010-68420099","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":4742,"name":"\u738b\u51a0","email":"","pinyin_shortcut":"wg","sex":"M","birth_date":null,"department":"","job_position":"\u6280\u672f","mobile":"","telephone":"","client_id":2094,"supplier_id":null,"created_by":1005,"created_at":"2023-07-25 11:24:25","updated_at":"2023-07-25 11:24:25","user_status":2,"description":"\u4e91\u955c\u9879\u76ee\u4f7f\u7528\u8005","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"wang","pinyin2":"guan","pinyin3":null,"pinyin4":null,"namecut1":"\u738b","namecut2":"\u51a0","namecut3":null,"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":1005,"key":1005,"name":"\u8d75\u6657\u7131","sex":"F"},"keyRoles":[],"mobiles":[{"id":5549,"contact_id":4742,"mobile":"18910233782","mp_open_id":null,"mobile_display":"18910233782"}],"commentCount":null,"contactKeyRoles":[{"id":160,"key":160,"name":"\u666e\u901a\u4eba"}],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":null,"can_update":false,"can_delete":false,"name_display":"\u738b\u51a0","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":4741,"name":"\u79e6\u9759","email":"","pinyin_shortcut":"qj","sex":"F","birth_date":null,"department":"\u8d44\u4ea7\u5904","job_position":"\u91c7\u8d2d","mobile":"","telephone":"","client_id":2094,"supplier_id":null,"created_by":1005,"created_at":"2023-07-25 11:23:28","updated_at":"2023-07-25 11:23:28","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"qin","pinyin2":"jing","pinyin3":null,"pinyin4":null,"namecut1":"\u79e6","namecut2":"\u9759","namecut3":null,"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":1005,"key":1005,"name":"\u8d75\u6657\u7131","sex":"F"},"keyRoles":[],"mobiles":[{"id":5548,"contact_id":4741,"mobile":"13641138311","mp_open_id":null,"mobile_display":"13641138311"}],"commentCount":null,"contactKeyRoles":[{"id":160,"key":160,"name":"\u666e\u901a\u4eba"}],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":null,"can_update":false,"can_delete":false,"name_display":"\u79e6\u9759","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":4668,"name":"\u738b\u4f1f","email":"","pinyin_shortcut":"ww","sex":"M","birth_date":null,"department":"\u8d44\u4ea7\u59041\u79d1\u5ba4","job_position":"","mobile":"","telephone":"","client_id":2094,"supplier_id":null,"created_by":1005,"created_at":"2023-07-04 09:55:50","updated_at":"2023-07-04 09:55:50","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"wang","pinyin2":"wei","pinyin3":null,"pinyin4":null,"namecut1":"\u738b","namecut2":"\u4f1f","namecut3":null,"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":1005,"key":1005,"name":"\u8d75\u6657\u7131","sex":"F"},"keyRoles":[],"mobiles":[{"id":5478,"contact_id":4668,"mobile":"13681468909","mp_open_id":null,"mobile_display":"13681468909"}],"commentCount":null,"contactKeyRoles":[{"id":160,"key":160,"name":"\u666e\u901a\u4eba"}],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":null,"can_update":false,"can_delete":false,"name_display":"\u738b\u4f1f","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":4454,"name":"\u6c88\u4e91\u6e5c","email":"","pinyin_shortcut":"sys","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":2094,"supplier_id":null,"created_by":1005,"created_at":"2023-01-09 11:21:05","updated_at":"2023-01-09 11:21:05","user_status":2,"description":"\u5c71\u4e1c\u7701\u70df\u53f0\u5e02\u829d\u7f58\u533a\u60e0\u6210\u88574\u53f7 \u59dc\u536b\u71d5 13406540653","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"shen","pinyin2":"yun","pinyin3":"shi","pinyin4":null,"namecut1":"\u6c88","namecut2":"\u4e91","namecut3":"\u6e5c","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":1005,"key":1005,"name":"\u8d75\u6657\u7131","sex":"F"},"keyRoles":[],"mobiles":[{"id":5267,"contact_id":4454,"mobile":"13605459009","mp_open_id":null,"mobile_display":"13605459009"}],"commentCount":null,"contactKeyRoles":[{"id":136,"key":136,"name":"\u6280\u672f\u51b3\u7b56\u4eba"}],"contactAttitude":null,"unreadComments":null,"can_update":false,"can_delete":false,"name_display":"\u6c88\u4e91\u6e5c","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"}],"pagenation":{"totalcount":6,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-13 17:27:48') RETURNING "id" |