Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hiliqi committed Jan 11, 2019
1 parent 538df78 commit dce78a9
Show file tree
Hide file tree
Showing 70 changed files with 3,784 additions and 93 deletions.
194 changes: 106 additions & 88 deletions .idea/workspace.xml

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions application/admin/controller/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use think\Controller;
use think\Request;
use app\model\Admin;

class Login extends Controller
{
Expand All @@ -25,8 +26,9 @@ public function login(Request $request){
{
$this->error('验证码错误','/admin/login/index','',1);
}
$admin = config('site.admin');
if ($admin != $request->param('admin')){
$username = $request->param('admin');
$password = md5($request->param('password').config('site.salt'));
if (!Admin::where('username','=',$request->param('admin')){
$this->error('用户名错误','/admin/login/index','',1);
}
$password = config('site.password');
Expand Down
1 change: 0 additions & 1 deletion public/static/.gitignore

This file was deleted.

Binary file added public/static/upload/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions public/static/upload/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
book/
banner/
2 changes: 0 additions & 2 deletions vendor/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
*
!.gitignore
7 changes: 7 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit663d55478ab4e9a8b8e65f4b48d2d666::getLoader();
Loading

0 comments on commit dce78a9

Please sign in to comment.