update
This commit is contained in:
@@ -54,25 +54,23 @@ class Dashboard extends Backend
|
||||
}
|
||||
}
|
||||
$this->view->assign([
|
||||
'totaluser' => Db::table('fa_tt_userbaseinfo')->where('create_time','>=',date("Y-m-d",time()))->count('id'),//今日问诊
|
||||
'totaladdon' => Db::table('fa_tt_userbaseinfo')->where('create_time','>=',date("Y-m-d",time()-30*86400))->count('id'),//30日问诊
|
||||
'totaladmin' => Db::table('fa_tt_userbaseinfo')->where('create_time','>=',date("Y-m-d",time()-30*3*86400))->count('id'),//3个月问诊
|
||||
'totalcategory' => Db::table('fa_tt_userbaseinfo')->count('id'),//总问诊
|
||||
'todayusersignup' => User::whereTime('jointime', 'today')->count(),
|
||||
'todayuserlogin' => User::whereTime('logintime', 'today')->count(),
|
||||
'sevendau' => User::whereTime('jointime|logintime|prevtime', '-7 days')->count(),
|
||||
'thirtydau' => User::whereTime('jointime|logintime|prevtime', '-30 days')->count(),
|
||||
'threednu' => User::whereTime('jointime', '-3 days')->count(),
|
||||
'sevendnu' => User::whereTime('jointime', '-7 days')->count(),
|
||||
'dbtablenums' => count($dbTableList),
|
||||
'dbsize' => array_sum(array_map(function ($item) {
|
||||
return $item['Data_length'] + $item['Index_length'];
|
||||
}, $dbTableList)),
|
||||
'totalworkingaddon' => $totalworkingaddon,
|
||||
'attachmentnums' => Attachment::count(),
|
||||
'attachmentsize' => Attachment::sum('filesize'),
|
||||
'picturenums' => Attachment::where('mimetype', 'like', 'image/%')->count(),
|
||||
'picturesize' => Attachment::where('mimetype', 'like', 'image/%')->sum('filesize'),
|
||||
'totaluser' => 0,//Db::table('fa_tt_userbaseinfo')->where('create_time','>=',date("Y-m-d",time()))->count('id'),//今日问诊
|
||||
'totaladdon' => 0,//Db::table('fa_tt_userbaseinfo')->where('create_time','>=',date("Y-m-d",time()-30*86400))->count('id'),//30日问诊
|
||||
'totaladmin' => 0,//Db::table('fa_tt_userbaseinfo')->where('create_time','>=',date("Y-m-d",time()-30*3*86400))->count('id'),//3个月问诊
|
||||
'totalcategory' => 0,//Db::table('fa_tt_userbaseinfo')->count('id'),//总问诊
|
||||
'todayusersignup' => 0,//User::whereTime('jointime', 'today')->count(),
|
||||
'todayuserlogin' => 0,//User::whereTime('logintime', 'today')->count(),
|
||||
'sevendau' => 0,//User::whereTime('jointime|logintime|prevtime', '-7 days')->count(),
|
||||
'thirtydau' => 0,//User::whereTime('jointime|logintime|prevtime', '-30 days')->count(),
|
||||
'threednu' => 0,//User::whereTime('jointime', '-3 days')->count(),
|
||||
'sevendnu' => 0,//User::whereTime('jointime', '-7 days')->count(),
|
||||
'dbtablenums' => 0,//count($dbTableList),
|
||||
'dbsize' => 0,//array_sum(array_map(function ($item) { return $item['Data_length'] + $item['Index_length'];}, $dbTableList)),
|
||||
'totalworkingaddon' => 0,//$totalworkingaddon,
|
||||
'attachmentnums' => 0,//Attachment::count(),
|
||||
'attachmentsize' => 0,//Attachment::sum('filesize'),
|
||||
'picturenums' => 0,//Attachment::where('mimetype', 'like', 'image/%')->count(),
|
||||
'picturesize' => 0,//Attachment::where('mimetype', 'like', 'image/%')->sum('filesize'),
|
||||
]);
|
||||
|
||||
$this->assignconfig('column', array_keys($userlist));
|
||||
|
||||
@@ -28,7 +28,7 @@ if (!function_exists('auto_choose_app_conf')) {
|
||||
$sys_env = 'PROD';
|
||||
}
|
||||
//测试
|
||||
else if(in_array($domain, ['ybx_prediagnosis_admin.excn.top','xxx.com'])) {
|
||||
else if(in_array($domain, ['ssss.excn.top','xxx.com'])) {
|
||||
$debug = true;
|
||||
$trace = false;
|
||||
$sys_env = 'DEV';
|
||||
|
||||
@@ -29,9 +29,9 @@ if (!function_exists('auto_choose_db_conf')) {
|
||||
}
|
||||
|
||||
//测试 socket请求这里$domain=null,【上线正式环境之后把null移动到正式环境配置】
|
||||
else if(in_array($domain, ['ybx_prediagnosis_admin.excn.top','sdsd.zcc10.com'])) {
|
||||
else if(in_array($domain, ['aaaaa.excn.top','sdsd.zcc10.com'])) {
|
||||
$hostname = '8.130.29.83';
|
||||
$database = 'digital_doctor';
|
||||
$database = 'fast_response';
|
||||
$username = 'wanghua';
|
||||
$password = '1m2s3456';
|
||||
$hostport = '3308';
|
||||
@@ -40,7 +40,7 @@ if (!function_exists('auto_choose_db_conf')) {
|
||||
//本地
|
||||
else{
|
||||
$hostname = '127.0.0.1';
|
||||
$database = 'digital_doctor';
|
||||
$database = 'fast_response';
|
||||
$username = 'root';
|
||||
$password = 'root';//root or 123456
|
||||
$hostport = '3306';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
return array (
|
||||
'name' => '数智人管理后台',
|
||||
'name' => '瞬应',
|
||||
'beian' => '',
|
||||
'cdnurl' => '',
|
||||
'version' => '1.0.1',
|
||||
|
||||
Reference in New Issue
Block a user