10:03:01.908 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:03:01.908 | trace | yii\base\Module::getModule | Loading module: debug |
10:03:01.908 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:03:01.909 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:03:01.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:03:01.909 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.909 | trace | yii\base\Module::getModule | Loading module: gii |
10:03:01.909 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:03:01.909 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:03:01.909 | trace | yii\web\Application::handleRequest | Route requested: 'v2/project/save-edit' |
10:03:01.909 | trace | yii\base\Module::getModule | Loading module: v2 |
10:03:01.909 | info | yii\web\Session::open | Session started |
10:03:01.910 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:03:01.912 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH' |
10:03:01.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.916 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:01.917 | trace | yii\base\Controller::runAction | Route to run: v2/project/save-edit |
10:03:01.917 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.918 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:03:01.918 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ProjectController::actionSaveEdit() |
10:03:01.918 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3817' |
10:03:01.919 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.919 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.919 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
10:03:01.920 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
10:03:01.920 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3817 |
10:03:01.921 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (5, 226, 129, 160, 142, 184, 189, 349)) ORDER BY "sort" |
10:03:01.922 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.922 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.923 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"='2815') AND ("project_title"='离开就好') AND ("id" != 3817)) |
10:03:01.923 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1') |
10:03:01.924 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
10:03:01.925 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"='6') |
10:03:01.925 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"='1') |
10:03:01.925 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
10:03:01.926 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3817 |
10:03:01.926 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3817 |
10:03:01.927 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:01.927 | info | yii\db\Command::execute | |
10:03:01.927 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:01.928 | info | yii\db\Command::execute | |
10:03:01.929 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "client_id"=2815, "project_status"=1, "project_progress"=6, "budget"='0', "profit_pct"='0', "updated_at"='now()', "contract_type"=1, "used_client"=NULL, "from_contact"=NULL WHERE "id"=3817 |
10:03:01.935 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3817) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:03:01.945 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.945 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.946 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.946 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.946 | 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', 3817, 'a:0:{}', '', 1000, '223.104.40.121') |
10:03:01.953 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
10:03:01.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.954 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:01.955 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3817 |
10:03:01.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.955 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1023 |
10:03:01.956 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5296 |
10:03:01.956 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1023 |
10:03:01.956 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5296 |
10:03:01.957 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:01.957 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.957 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.958 | 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, 'projectArchitects', 3817, 1, 1000, 'now()', '[["\u5468\u5b50\u5065 50%","\u8d75\u5b87 50%"]]', '[["\u5468\u5b50\u5065 90%","\u8d75\u5b87 10%"]]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u552e\u524d\u652f\u6301","d4":["\u5468\u5b50\u5065 90%;\u8d75\u5b87 10%; <b>\u53d8\u4e3a<\/b> \u5468\u5b50\u5065 50%;\u8d75\u5b87 50%;"]}') |
10:03:01.962 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
10:03:01.962 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:01.963 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.963 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.963 | 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, 'projectArchitects', 3817, 1, 1000, 'now()', '[["\u5468\u5b50\u5065 50%","\u8d75\u5b87 50%"]]', '[["\u5468\u5b50\u5065 90%","\u8d75\u5b87 10%"]]', array[1004], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u552e\u524d\u652f\u6301","d4":["\u5468\u5b50\u5065 90%;\u8d75\u5b87 10%; <b>\u53d8\u4e3a<\/b> \u5468\u5b50\u5065 50%;\u8d75\u5b87 50%;"]}') |
10:03:01.966 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3817 |
10:03:01.967 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_project_architects" ("project_id", "engineer_id", "contribution", "created_by") VALUES (3817, 1023, '0.5', 1000), (3817, 5296, '0.5', 1000) |
10:03:01.971 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3817 |
10:03:01.971 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (5, 226, 129, 160, 142, 184, 189, 349)) ORDER BY "sort" |
10:03:01.972 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=129 |
10:03:01.972 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='129' |
10:03:01.972 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3817) AND ("term_id"=9) |
10:03:01.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.973 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (9, 129, 3817) |
10:03:01.977 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=142 |
10:03:01.977 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='142' |
10:03:01.977 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3817) AND ("term_id"=13) |
10:03:01.978 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 142, 3817) |
10:03:01.979 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3817 |
10:03:01.979 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:01.979 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:01.979 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3817 |
10:03:01.980 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_remind_receivers" ("project_id", "user_id") VALUES (3817, 1017) RETURNING "id" |
10:03:01.983 | 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\ProjectRemindReceivers', 1620, 'a:3:{s:2:"id";i:1620;s:10:"project_id";i:3817;s:7:"user_id";s:4:"1017";}', '', 1000, '223.104.40.121') |
10:03:01.984 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3817 |
10:03:01.986 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
10:03:01.987 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2815 |
10:03:01.989 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:03:02.009 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:02.009 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:02.009 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id" |
10:03:02.011 | 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', 165237, 'a:5:{s:2:"id";i:165237;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.40.121') |
10:03:02.012 | 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', 2815, 'a:0:{}', '', 1000, '223.104.40.121') |
10:03:02.013 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:03:02.013 | 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', 2815, 10, 3817, 1, 1000, '[3817]', '[3817]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u79bb\u5f00\u5c31\u597d"]}') RETURNING "id" |
10:03:02.014 | 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', 510492, 'a:13:{s:2:"id";i:510492;s:9:"object_id";s:4:"2815";s:11:"object_type";i:10;s:9:"target_id";i:3817;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3817]";s:9:"new_value";s:6:"[3817]";s:11:"description";s:107:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u79bb\u5f00\u5c31\u597d"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
10:03:02.015 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
10:03:02.016 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01 00:00:00') AND ("bargain_date" <= '2025-12-31 23:59:59') AND ("client_id"=2815) |
10:03:02.017 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:03:02.025 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id" |
10:03:02.026 | 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', 165238, 'a:5:{s:2:"id";i:165238;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.40.121') |
10:03:02.027 | 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', 2815, 'a:0:{}', '', 1000, '223.104.40.121') |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:03:02.029 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:03:02.029 | 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, 2, 1141, 'v2/project/save-edit', '{"Projects":{"bargain_date":"2025-09-11","client_id":"2815","comment":"","contract_type":"1","from_contact":"","id":"3817","projectArchitects":{"1023":"0.50","5296":"0.50"},"projectProductTypes":"","projectRemindReceivers":["1017"],"project_progress":"6","project_status":"1","project_title":"\u79bb\u5f00\u5c31\u597d","purchaseType":"129","salesForecast":"142","used_client":""},"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","posttime":"1752199424","token":"0d91e0b162902e8a425d2d2f335d71f8","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5546\u673a\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-07-11 10:03:02') RETURNING "id" |