refactor(member, auth): streamline product info retrieval and enhance dashboard statistics
- Updated `getProductInfo` method in `Member` model to use a unified model for fetching product data. - Refactored `logLogin` method to utilize `MemberLoginLog` for logging login attempts. - Introduced `getDashboardStats` method in `AuthService` to gather user-specific statistics, including remaining quotas and counts of authorized accounts, published tasks, and works. - Added new database configuration for Douyin business statistics.
This commit is contained in:
@@ -62,6 +62,27 @@ return [
|
||||
'fields_cache' => false,
|
||||
],
|
||||
|
||||
// 抖音业务数据库(用于首页发布作品统计分表)
|
||||
'dbdouying' => [
|
||||
'type' => 'mysql',
|
||||
'hostname' => env('DB_DOUYING_HOSTNAME', 'rm-m5e6936bb24oj5272co.mysql.rds.aliyuncs.com'),
|
||||
'database' => env('DB_DOUYING_DATABASE', 'douying'),
|
||||
'username' => env('DB_DOUYING_USERNAME', 'contenttpl'),
|
||||
'password' => env('DB_DOUYING_PASSWORD', 'QXYxgg123!@#q'),
|
||||
'hostport' => env('DB_DOUYING_HOSTPORT', '3306'),
|
||||
'params' => [],
|
||||
'charset' => env('DB_DOUYING_CHARSET', 'utf8'),
|
||||
'prefix' => '',
|
||||
'deploy' => 0,
|
||||
'rw_separate' => false,
|
||||
'master_num' => 1,
|
||||
'slave_no' => '',
|
||||
'fields_strict' => false,
|
||||
'break_reconnect' => false,
|
||||
'trigger_sql' => env('APP_DEBUG', true),
|
||||
'fields_cache' => false,
|
||||
],
|
||||
|
||||
// 后台管理数据库
|
||||
'dbxgg' => [
|
||||
'type' => 'mysql',
|
||||
|
||||
Reference in New Issue
Block a user