| 15:15:19.784 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 15:15:19.784 | trace | yii\base\Module::getModule | Loading module: debug |
| 15:15:19.784 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 15:15:19.785 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 15:15:19.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 15:15:19.785 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.785 | trace | yii\base\Module::getModule | Loading module: gii |
| 15:15:19.785 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
| 15:15:19.785 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 15:15:19.785 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-gift/save-sn' |
| 15:15:19.785 | trace | yii\base\Module::getModule | Loading module: vue |
| 15:15:19.786 | info | yii\web\Session::open | Session started |
| 15:15:19.786 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 15:15:19.786 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 15:15:19.791 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.791 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.791 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 15:15:19.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.792 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.792 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:15:19.794 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-gift/save-sn |
| 15:15:19.794 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.795 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 15:15:19.795 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesGiftController::actionSaveSn() |
| 15:15:19.795 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"='66' |
| 15:15:19.796 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.796 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.796 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateErpSalesGift |
| 15:15:19.796 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 15:15:19.796 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_id"=66 |
| 15:15:19.797 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.797 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" WHERE "erp_sales_gift_spent_product_id"=109 |
| 15:15:19.798 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" WHERE "erp_sales_gift_spent_product_id"=109 |
| 15:15:19.798 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.798 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.798 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" ("erp_sales_gift_spent_product_id", "erp_inventory_product_sn_id", "sn") VALUES (109, 19, '阿文企鹅') |
| 15:15:19.802 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "id"='19' |
| 15:15:19.802 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.802 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.808 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_inventory_lost_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_lost_products" "eprp" ON eprp.id = r.erp_inventory_lost_product_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_losts" "epr" ON eprp.erp_inventory_lost_id = epr.id WHERE ("r"."erp_inventory_product_sn_id"=19) AND ("epr"."status" IN (1, 2)) |
| 15:15:19.813 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_inventory_build_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_build_spent_products" "eprp" ON eprp.id = r.erp_inventory_build_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "epr" ON eprp.erp_inventory_build_id = epr.id WHERE ("r"."erp_inventory_product_sn_id"=19) AND ("epr"."status" IN (1, 2)) |
| 15:15:19.817 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbound_spent_products" "eprp" ON eprp.id = r.erp_sales_outbound_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "epr" ON eprp.erp_sales_outbound_id = epr.id WHERE ("r"."is_cancel"=FALSE) AND ("r"."erp_inventory_product_sn_id"=19) AND ("epr"."status" IN (1, 2)) |
| 15:15:19.821 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_gift_spent_products" "eprp" ON eprp.id = r.erp_sales_gift_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "epr" ON eprp.erp_sales_gift_id = epr.id WHERE ("r"."is_cancel"=FALSE) AND ("r"."erp_inventory_product_sn_id"=19) AND ("epr"."status" IN (1, 2)) |
| 15:15:19.824 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_product_sns" SET "is_used"=TRUE, "used_erp_sales_gift_spent_product_sn_id"=9 WHERE "id"=19 |
| 15:15:19.828 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.828 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.829 | 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\ErpInventoryProductSns', 19, 'a:2:{s:7:"is_used";b:1;s:39:"used_erp_sales_gift_spent_product_sn_id";i:9;}', '', 1001, '223.72.15.22') |
| 15:15:19.830 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "id"=16 |
| 15:15:19.831 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.831 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.831 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" SET "is_used"=TRUE WHERE "id"=16 |
| 15:15:19.832 | 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\ErpPurchaseInboundProductSns', 16, 'a:1:{s:7:"is_used";b:1;}', '', 1001, '223.72.15.22') |
| 15:15:19.834 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_product_sns" WHERE 0=1 |
| 15:15:19.835 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_product_sns" WHERE 0=1 |
| 15:15:19.837 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_product_sns" WHERE 0=1 |
| 15:15:19.839 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.839 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.839 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-18') |
| 15:15:19.848 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.848 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:15:19.848 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=1059, "last_visit_at"='now()' WHERE "id"=59588 |
| 15:15:19.849 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-gift/save-sn', '{"sns":{"109":[{"erp_inventory_product_sn_id":"19","sn":"\u963f\u6587\u4f01\u9e45"}]},"id":"66","web_access_token":"yb8YvQDqCxvGUQWSJnYL2S9XtkD7pVRr"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u8d60\u9001\u5355\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0,"ip":"223.72.15.22","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-18 15:15:19') RETURNING "id" |
| 15:15:19.851 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:15:19.851 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |