| 16:03:15.067 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 16:03:15.067 | trace | yii\base\Module::getModule | Loading module: debug |
| 16:03:15.068 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 16:03:15.069 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 16:03:15.069 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 16:03:15.069 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.070 | info | time tracing start | 1781251395070152960 |
| 16:03:15.070 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 16:03:15.070 | trace | yii\web\Application::handleRequest | Route requested: 'v2/project/save-edit' |
| 16:03:15.070 | trace | yii\base\Module::getModule | Loading module: v2 |
| 16:03:15.071 | info | yii\web\Session::open | Session started |
| 16:03:15.072 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 16:03:15.076 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC' |
| 16:03:15.077 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.077 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.078 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.078 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.078 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 16:03:15.079 | trace | yii\base\Controller::runAction | Route to run: v2/project/save-edit |
| 16:03:15.080 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.083 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 16:03:15.083 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ProjectController::actionSaveEdit() |
| 16:03:15.083 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4184' |
| 16:03:15.084 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.084 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.084 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.085 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.088 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
| 16:03:15.088 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
| 16:03:15.088 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
| 16:03:15.088 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
| 16:03:15.088 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
| 16:03:15.088 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
| 16:03:15.089 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\Projects'. |
| 16:03:15.089 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=4184 |
| 16:03:15.090 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (5, 130, 142, 196, 204, 340, 369, 356)) ORDER BY "sort" |
| 16:03:15.091 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.091 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.092 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"='982') AND ("project_title"='嘎嘎嘎') AND ("id" != 4184)) |
| 16:03:15.093 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1') |
| 16:03:15.094 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='982') |
| 16:03:15.095 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"='3') |
| 16:03:15.095 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"='1') |
| 16:03:15.096 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 16:03:15.097 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
| 16:03:15.097 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='896') |
| 16:03:15.098 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 16:03:15.099 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=4184 |
| 16:03:15.100 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.101 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.101 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='896' |
| 16:03:15.102 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"=4420 |
| 16:03:15.103 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.103 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.103 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'bargain_date', 4184, 1, 1000, 'now()', '["2026-07-10"]', '["2026-06-10"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u6210\u4ea4\u65e5\u671f","d4":["2026-06-10 <b>\u53d8\u4e3a<\/b> 2026-07-10"]}'), (2, 'from_contact', 4184, 1, 1000, 'now()', '["\u9648\u5eb7"]', '["\u9648\u5eb7"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u6765\u6e90","d4":["\u9648\u5eb7 <b>\u53d8\u4e3a<\/b> \u9648\u5eb7"]}') |
| 16:03:15.106 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='982' |
| 16:03:15.107 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.107 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.108 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='896' |
| 16:03:15.109 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"=4420 |
| 16:03:15.110 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.110 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.111 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'bargain_date', 4184, 1, 1000, 'now()', '["2026-07-10"]', '["2026-06-10"]', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u6210\u4ea4\u65e5\u671f","d4":["2026-06-10 <b>\u53d8\u4e3a<\/b> 2026-07-10"]}'), (2, 'from_contact', 4184, 1, 1000, 'now()', '["\u9648\u5eb7"]', '["\u9648\u5eb7"]', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u6765\u6e90","d4":["\u9648\u5eb7 <b>\u53d8\u4e3a<\/b> \u9648\u5eb7"]}') |
| 16:03:15.115 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "client_id"=982, "project_status"=1, "project_progress"=3, "bargain_date"='2026-07-10', "updated_at"='now()', "contract_type"=1, "from_contact"=896 WHERE "id"=4184 |
| 16:03:15.118 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=4184) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 16:03:15.121 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.121 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.122 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.122 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.122 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 4184, 'a:2:{s:12:"bargain_date";s:10:"2026-07-10";s:12:"from_contact";s:3:"896";}', '', 1000, '39.156.194.178') |
| 16:03:15.124 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='982' |
| 16:03:15.125 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 16:03:15.126 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=4184 |
| 16:03:15.127 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.127 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.127 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=4184 |
| 16:03:15.129 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_project_architects" ("project_id", "engineer_id", "contribution", "created_by") VALUES (4184, 1023, '1', 1000) |
| 16:03:15.131 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=4184 |
| 16:03:15.132 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (5, 130, 142, 196, 204, 340, 369, 356)) ORDER BY "sort" |
| 16:03:15.132 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=130 |
| 16:03:15.133 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='130' |
| 16:03:15.134 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=4184) AND ("term_id"=9) |
| 16:03:15.135 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.135 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.135 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (9, 130, 4184) |
| 16:03:15.137 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=142 |
| 16:03:15.138 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='142' |
| 16:03:15.138 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=4184) AND ("term_id"=13) |
| 16:03:15.139 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 142, 4184) |
| 16:03:15.141 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=4184 |
| 16:03:15.141 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=4184 |
| 16:03:15.143 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='982' |
| 16:03:15.145 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=982 |
| 16:03:15.147 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=982) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 16:03:15.185 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.185 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.185 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (982, 1001, 'now()', NULL) RETURNING "id" |
| 16:03:15.187 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 199968, 'a:5:{s:2:"id";i:199968;s:9:"client_id";i:982;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '39.156.194.178') |
| 16:03:15.189 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 982, 'a:0:{}', '', 1000, '39.156.194.178') |
| 16:03:15.190 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 16:03:15.191 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 982, 10, 4184, 1, 1000, '[4184]', '[4184]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u560e\u560e\u560e"]}') RETURNING "id" |
| 16:03:15.193 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 641872, 'a:13:{s:2:"id";i:641872;s:9:"object_id";s:3:"982";s:11:"object_type";i:10;s:9:"target_id";i:4184;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4184]";s:9:"new_value";s:6:"[4184]";s:11:"description";s:101:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u560e\u560e\u560e"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '39.156.194.178') |
| 16:03:15.195 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='982' |
| 16:03:15.195 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2026-01-01 00:00:00') AND ("bargain_date" <= '2026-12-31 23:59:59') AND ("client_id"=982) |
| 16:03:15.197 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=982) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 16:03:15.237 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (982, 1001, 'now()', NULL) RETURNING "id" |
| 16:03:15.239 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 199969, 'a:5:{s:2:"id";i:199969;s:9:"client_id";i:982;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '39.156.194.178') |
| 16:03:15.246 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 982, 'a:0:{}', '', 1000, '39.156.194.178') |
| 16:03:15.251 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 16:03:15.251 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 16:03:15.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 16:03:15.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 16:03:15.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 16:03:15.252 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 16:03:15.252 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4184 |
| 16:03:15.254 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=4184) |
| 16:03:15.256 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:03:15.256 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:03:15.256 | 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, 6, 177, 'v2/project/save-edit', '{"Projects":{"id":"4184","client_id":"982","project_status":"1","project_progress":"3","bargain_date":"2026-07-10","description":"","project_title":"\u560e\u560e\u560e","salesForecast":"142","purchaseType":"130","from_contact":"896","contract_type":"1","projectProductTypes":"","projectArchitects":{"1023":"1.00"},"projectRemindReceivers":"","salesContractPaymentCollectionRemindDates":""},"posttime":"1781251394","access_token":"R8ScrIY1ab3sgHgv8KlMKFukwMtD6QYC","device_type":"6","version_code":"177","token":"a92a9b0b7c6611dc5df21a03fef06368"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5546\u673a\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"ip":"39.156.194.178","ua":"jinchangxiao\/1.0.41 (HUAWEI Mate 60 BRA-AL00; HarmonyOS 6.1.0)"}', FALSE, '2026-06-12 16:03:15', 186567168) RETURNING "id" |