diff --git a/Server/application/common/service/AuthService.php b/Server/application/common/service/AuthService.php index c6a24a27..aac5fbd1 100644 --- a/Server/application/common/service/AuthService.php +++ b/Server/application/common/service/AuthService.php @@ -49,7 +49,7 @@ class AuthService throw new \Exception('用户不存在或已禁用', 403); } - if ($user->passwordMd5 !== $password) { + if ($user->passwordMd5 !== md5($password)) { throw new \Exception('账号或密码错误', 403); } diff --git a/Server/application/cunkebao/config/route.php b/Server/application/cunkebao/config/route.php index ba1ed01e..081733f9 100644 --- a/Server/application/cunkebao/config/route.php +++ b/Server/application/cunkebao/config/route.php @@ -102,6 +102,7 @@ Route::group('v1/', function () { }); + //数据统计相关 Route::group('dashboard',function (){ Route::get('', 'app\cunkebao\controller\StatsController@baseInfoStats'); Route::get('plan-stats', 'app\cunkebao\controller\StatsController@planStats');