10:31:43.910 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:31:43.910 | trace | yii\base\Module::getModule | Loading module: debug |
10:31:43.910 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:31:43.910 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:31:43.910 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:31:43.911 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.911 | trace | yii\base\Module::getModule | Loading module: gii |
10:31:43.911 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:31:43.911 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:31:43.911 | trace | yii\web\Application::handleRequest | Route requested: 'v2/client/give-up' |
10:31:43.911 | trace | yii\base\Module::getModule | Loading module: v2 |
10:31:43.911 | info | yii\web\Session::open | Session started |
10:31:43.912 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:31:43.914 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om' |
10:31:43.917 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.917 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.917 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.917 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.917 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:31:43.919 | trace | yii\base\Controller::runAction | Route to run: v2/client/give-up |
10:31:43.919 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.920 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:31:43.920 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ClientController::actionGiveUp() |
10:31:43.920 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3390' |
10:31:43.921 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.921 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.921 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
10:31:43.922 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE ("case_status" NOT IN (5, 6)) AND ("client_id"=3390) |
10:31:43.923 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
10:31:43.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:31:43.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.926 | 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 (5, 'sales_rep', 3390, 10, 1000, 'now()', '[""]', '["\u5218\u4eba\u8bda"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u653e\u5f03\u4e86","d3":"\u5ba2\u6237","d4":[]}') |
10:31:43.927 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
10:31:43.928 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:31:43.928 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.928 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.928 | 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 (5, 'sales_rep', 3390, 10, 1000, 'now()', '[""]', '["\u5218\u4eba\u8bda"]', array[1000], '{"d1":"\u66f9\u6c38\u751f","d2":"\u653e\u5f03\u4e86","d3":"\u5ba2\u6237","d4":[]}') |
10:31:43.930 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE ("contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "client_id"=3390)) AND ("user_id"=1001) |
10:31:43.932 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "sales_rep"=NULL, "pick_at"=NULL WHERE "id"=3390 |
10:31:43.934 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3390) AND ("sales_rep"=1001) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:31:43.934 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.934 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.935 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_client_am_change_logs" SET "end_at"='now()' WHERE "id"=180796 |
10:31:43.936 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.936 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.936 | 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\ClientAmChangeLogs', 180796, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 1000, '223.104.41.67') |
10:31:43.937 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3390, NULL, 'now()', NULL) RETURNING "id" |
10:31:43.938 | 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', 180797, 'a:5:{s:2:"id";i:180797;s:9:"client_id";i:3390;s:9:"sales_rep";N;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.41.67') |
10:31:43.939 | 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', 3390, 'a:2:{s:9:"sales_rep";i:1001;s:7:"pick_at";s:29:"2025-09-11 10:31:18.895082+08";}', '', 1000, '223.104.41.67') |
10:31:43.940 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("project_status" IN (1, 2)) AND ("client_id"=3390) |
10:31:43.940 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.941 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.941 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_client_sales_rep_rels" SET "end_at"='now()' WHERE ("client_id"=3390) AND ("end_at" IS NULL) |
10:31:43.943 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.943 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.944 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_schedules" SET "end_at"='now()', "is_complete"=TRUE, "complete_at"='now()', "is_closed"=TRUE WHERE ("client_id"=3390) AND ("is_complete"=FALSE) |
10:31:43.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:31:43.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:31:43.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:31:43.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:31:43.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:31:43.953 | 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, 1149, 'v2/client/give-up', '{"access_token":"gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om","device_type":"2","id":"3390","posttime":"1757557888","token":"58e87846cfc573e9a9519cc373b7e334","version_code":"1149"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5ba2\u6237\u5df2\u7ecf\u6210\u529f\u4ece\u60a8\u7684\u5ba2\u6237\u5217\u8868\u4e2d\u79fb\u9664\uff0c\u672a\u6765\u60a8\u4ecd\u7136\u53ef\u4ee5\u5728\u5ba2\u6237\u5171\u4eab\u6c60\u4e2d\u627e\u5230\u8be5\u5ba2\u6237","error":""}]}', FALSE, '2025-09-11 10:31:43') RETURNING "id" |