10:56:21.064 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:56:21.064 | trace | yii\base\Module::getModule | Loading module: debug |
10:56:21.064 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:56:21.064 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:56:21.064 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:56:21.064 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.065 | trace | yii\base\Module::getModule | Loading module: gii |
10:56:21.065 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:56:21.065 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:56:21.065 | trace | yii\web\Application::handleRequest | Route requested: 'v2/client/save-edit' |
10:56:21.065 | trace | yii\base\Module::getModule | Loading module: v2 |
10:56:21.065 | info | yii\web\Session::open | Session started |
10:56:21.066 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:56:21.067 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd' |
10:56:21.070 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.070 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.071 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.071 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.071 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:56:21.072 | trace | yii\base\Controller::runAction | Route to run: v2/client/save-edit |
10:56:21.072 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.073 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:56:21.073 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ClientController::actionSaveEdit() |
10:56:21.073 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3337') AND ("deleted"=FALSE) |
10:56:21.074 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.074 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.075 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateClient |
10:56:21.075 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:56:21.075 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.075 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.076 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Clients'. |
10:56:21.076 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'workingAddresses' in 'app\models\Clients'. |
10:56:21.077 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE "name"='海基会基金会' LIMIT 2 |
10:56:21.077 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_client_classes" WHERE "id"='80') |
10:56:21.078 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_client_industries" WHERE "id"='1') |
10:56:21.078 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_client_types" WHERE "id"='1') |
10:56:21.079 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_company_natures" WHERE "id"='3') |
10:56:21.079 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5332') |
10:56:21.079 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
10:56:21.080 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='3740') |
10:56:21.080 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.080 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.080 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='3740' |
10:56:21.081 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:56:21.082 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.082 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.082 | 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, 'from_contact', 3337, 10, 1000, 'now()', '["\u4ee3\u9ad8\u4e50"]', '[null]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba2\u6237\u6765\u6e90","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u4ee3\u9ad8\u4e50"]}') |
10:56:21.083 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='3740' |
10:56:21.084 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:56:21.084 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.084 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.084 | 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, 'from_contact', 3337, 10, 1000, 'now()', '["\u4ee3\u9ad8\u4e50"]', '[null]', array[5332,1000], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba2\u6237\u6765\u6e90","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u4ee3\u9ad8\u4e50"]}') |
10:56:21.086 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "company_nature"=3, "client_class"=80, "client_industry"=1, "client_type"=1, "sales_rep"=5332, "updated_at"='now()', "from_contact"=3740 WHERE "id"=3337 |
10:56:21.088 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.088 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.088 | 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', 3337, 'a:1:{s:12:"from_contact";s:4:"3740";}', '', 1000, '223.104.41.148') |
10:56:21.090 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.091 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_sources'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
10:56:21.098 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_sources'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
10:56:21.111 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.111 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
10:56:21.111 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sources" SET "client_name"='海基会基金会' WHERE "client_id"=3337 |
10:56:21.114 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3337 |
10:56:21.115 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=14) AND ("id" IN (5, 226, 1, 164, 136, 137, 140, 181, 196, 204, 340)) ORDER BY "sort" |
10:56:21.116 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3337) AND ("term_id"=14) |
10:56:21.116 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3337 |
10:56:21.116 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_addresses" WHERE ("address2" != '') AND ("address2" IS NOT NULL) AND ("id"=4124) |
10:56:21.117 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.117 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.117 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_addresses" WHERE "id" IN (SELECT "address_id" FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3337) |
10:56:21.125 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3337 |
10:56:21.127 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.127 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.127 | info | yii\db\Command::query | SELECT * FROM "public"."tbl_countries" WHERE "id"=1 |
10:56:21.128 | info | yii\db\Command::query | SELECT * FROM "public"."tbl_geo" WHERE "id"='110108' |
10:56:21.128 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.128 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.128 | info | yii\db\Command::query | SELECT * FROM "public"."tbl_geo" WHERE "id"=110100 |
10:56:21.128 | info | yii\db\Command::query | SELECT * FROM "public"."tbl_geo" WHERE "id"=110000 |
10:56:21.129 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_addresses" ("address1", "address2", "region_id", "name", "created_by", "updated_at", "country_id", "country", "region", "city_id", "city", "state_id", "state", "geolocation") VALUES ('北京市海淀区远大路1号B座5楼(世纪金源购物中心旁)', '北京世纪星豪酒店', 110108, '海基会基金会', 1000, 'now()', 1, '中国', '海淀区', 110100, '市辖区', 110000, '北京市', '(116.2887,39.96021)') RETURNING "id" |
10:56:21.130 | 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\WorkingAddresses', 4125, 'a:17:{s:2:"id";i:4125;s:4:"name";s:18:"海基会基金会";s:8:"address1";s:68:"北京市海淀区远大路1号B座5楼(世纪金源购物中心旁)";s:8:"address2";s:24:"北京世纪星豪酒店";s:5:"state";s:9:"北京市";s:4:"city";s:9:"市辖区";s:6:"region";s:9:"海淀区";s:3:"zip";N;s:7:"country";s:6:"中国";s:11:"geolocation";s:19:"(116.2887,39.96021)";s:10:"created_by";i:1000;s:10:"created_at";N;s:10:"updated_at";s:19:"1970-01-01 08:00:00";s:8:"state_id";i:110000;s:7:"city_id";i:110100;s:9:"region_id";s:6:"110108";s:10:"country_id";i:1;}', '', 1000, '223.104.41.148') |
10:56:21.131 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.131 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.131 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_client_address_rels" ("client_id", "address_id") VALUES (3337, 4125) |
10:56:21.132 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3337 |
10:56:21.132 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_contacts" WHERE ("user_status"=2) AND ("client_id"=3337) |
10:56:21.133 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_addresses" WHERE "client_id"=3337 |
10:56:21.134 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3337 |
10:56:21.134 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_addresses" WHERE ("address2" != '') AND ("address2" IS NOT NULL) AND ("id"=4125) |
10:56:21.135 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3337) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:56:21.144 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.144 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.144 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3337, 5332, 'now()', NULL) RETURNING "id" |
10:56:21.145 | 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', 165064, 'a:5:{s:2:"id";i:165064;s:9:"client_id";i:3337;s:9:"sales_rep";i:5332;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.41.148') |
10:56:21.146 | 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', 3337, 'a:0:{}', '', 1000, '223.104.41.148') |
10:56:21.147 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:56:21.147 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:56:21.147 | 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/client/save-edit', '{"Clients":{"client_class":"80","client_industry":"1","client_type":"1","company_nature":"3","from_contact":"3740","id":"3337","name":"\u6d77\u57fa\u4f1a\u57fa\u91d1\u4f1a","sales_rep":"5332","workingAddresses":[{"address1":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u8fdc\u5927\u8def1\u53f7B\u5ea75\u697c(\u4e16\u7eaa\u91d1\u6e90\u8d2d\u7269\u4e2d\u5fc3\u65c1)","address2":"\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","lat":"39.96021","lng":"116.2887","region_id":"110108"}]},"access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"2","posttime":"1751597824","token":"fba65942874101784cb5ae9300e055dc","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5ba2\u6237\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-07-04 10:56:21') RETURNING "id" |