17:43:50.234 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:43:50.234 | trace | yii\base\Module::getModule | Loading module: debug |
17:43:50.235 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:43:50.235 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:43:50.235 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:43:50.235 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.235 | trace | yii\base\Module::getModule | Loading module: gii |
17:43:50.235 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:43:50.235 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:43:50.235 | trace | yii\web\Application::handleRequest | Route requested: 'v2/contact/get-edit' |
17:43:50.235 | trace | yii\base\Module::getModule | Loading module: v2 |
17:43:50.236 | info | yii\web\Session::open | Session started |
17:43:50.236 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:43:50.238 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='c1glbS3oPWuii9fAd_nsZY9pK1ntZvhw' |
17:43:50.241 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.241 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:43:50.242 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.242 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:43:50.242 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5446 |
17:43:50.243 | trace | yii\base\Controller::runAction | Route to run: v2/contact/get-edit |
17:43:50.244 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.244 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:43:50.244 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewClientContact |
17:43:50.244 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:43:50.244 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:43:50.244 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesManager |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: GM |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Treasurer |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewSupplierContact |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:43:50.245 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 人力资源 |
17:43:50.245 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ContactController::actionGetEdit() |
17:43:50.245 | 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_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "c"."id"='6126' GROUP BY "c"."id" |
17:43:50.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:43:50.247 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=718 |
17:43:50.248 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6126 |
17:43:50.248 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=6126 ORDER BY "key_role" |
17:43:50.249 | info | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=5446 |
17:43:50.249 | info | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5446) |
17:43:50.249 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6126 |
17:43:50.250 | 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" |
17:43:50.251 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6126 |
17:43:50.251 | 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" |
17:43:50.251 | info | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=6126) GROUP BY "object_id" |
17:43:50.272 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.273 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.273 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewContactInfo |
17:43:50.273 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:43:50.273 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesManager |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Treasurer |
17:43:50.274 | info | yii\db\Command::query | SELECT "id" AS "key", "status" AS "name" FROM "a57be577deb434"."tbl_contact_statuses" |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateSupplierContact |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: ProjectManager |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Engineer |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 人力资源 |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteSupplierContact |
17:43:50.274 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:43:50.275 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Treasurer |
17:43:50.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:43:50.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:43:50.275 | 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', 5446, 6, 169, 'v2/contact/get-edit', '{"id":"6126","posttime":"1756460630","access_token":"c1glbS3oPWuii9fAd_nsZY9pK1ntZvhw","device_type":"6","version_code":"169","token":"fbf8cace10cfd6049bfd2d678db1fe7e"}', '{"code":200,"data":{"model":{"id":6126,"name":"a","email":"","pinyin_shortcut":"a","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":null,"supplier_id":718,"created_by":5446,"created_at":"2025-08-29 17:43:04","updated_at":"2025-08-29 17:43:04","user_status":2,"description":"","contact_type":"2","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"a","pinyin2":null,"pinyin3":null,"pinyin4":null,"namecut1":"a","namecut2":null,"namecut3":null,"namecut4":null,"is_mp_bind":false,"client":null,"supplier":{"id":718,"name":"\u5317\u4eac\u7406\u60f3\u4e91\u5929\u79d1\u6280\u6709\u9650\u516c\u53f8","abbr":null,"pinyin_shortcut":"bjlxytkjyxgs","main_products":"\u8054\u60f3\u670d\u52a1\u5668","company_nature":4,"website":"","established_at":"2009-03-18","capital":200,"corp_rep":"\u7f57\u4e3d\u82b3","reg_address":null,"telephone":"010-62551599","fax":"","description":"\u4f01\u4e1a\u540d\u79f0\uff1a\u5317\u4eac\u7406\u60f3\u4e91\u5929\u79d1\u6280\u6709\u9650\u516c\u53f8 \n\u4f01\u4e1a\u7a0e\u53f7\uff1a91110108686928558U \n\u4f01\u4e1a\u5730\u5740\uff1a\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u82cf\u5dde\u885720\u53f7\u96622\u53f7\u697c\u4e09\u5c423038 \n\u7535\u8bdd\u53f7\u7801\uff1a010-62551599 \n\u5f00\u6237\u94f6\u884c\uff1a\u4e2d\u56fd\u5de5\u5546\u94f6\u884c\u6d77\u6dc0\u652f\u884c\u8425\u4e1a\u90e8 \n\u94f6\u884c\u8d26\u6237\uff1a0200049609200565967","main_contact":null,"created_by":1011,"created_at":"2025-08-01 13:22:33","updated_at":"2025-08-01 13:22:33","working_address":4228,"capital_currency":"rmb","payment_cycle":"30\u5929","account_number":"\u5f00\u6237\u94f6\u884c\uff1a\u4e2d\u56fd\u5de5\u5546\u94f6\u884c\u6d77\u6dc0\u652f\u884c\u8425\u4e1a\u90e8 \n\u94f6\u884c\u8d26\u6237\uff1a0200049609200565967"},"mobiles":[{"id":6906,"contact_id":6126,"mobile":"13333333333","mp_open_id":null,"mobile_display":"13333333333"}],"keyRoles":[],"createdBy":{"id":5446,"key":5446,"name":"\u5218\u5a1f","sex":"F","avatar":{"id":164,"user_id":5446,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5631bbfb-fa6e-308e-b87c-b159e8042209.jpg"}},"contactKeyRoles":[],"contactAttitude":null,"commentCount":null,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1","name_display":"a","can_update":true,"can_delete":false},"options":[{"key":"Contacts[user_status]","name":"\u7528\u6237\u72b6\u6001","value":[{"key":1,"name":"\u79bb\u804c"},{"key":2,"name":"\u5728\u804c"},{"key":3,"name":"\u5931\u8054"}]},{"key":"Contacts[sex]","name":"sex","value":[{"key":"M","name":"\u7537"},{"key":"F","name":"\u5973"}]},{"key":"Contacts[contact_attitude]","name":"\u5ba2\u6237\u5173\u7cfb","value":[{"key":"","name":"(\u4e0d\u660e\u786e)"},{"key":"2","name":"\u652f\u6301"},{"key":"1","name":"\u4e2d\u7acb"},{"key":"0","name":"\u53cd\u5bf9"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-08-29 17:43:50') RETURNING "id" |