From 21d806999d01c4faace55c7dd53bff5f69a8b427 Mon Sep 17 00:00:00 2001
From: F4NNIU <sparkamax@gmail.com>
Date: Tue, 20 Jun 2017 16:35:11 +0800
Subject: [PATCH] * 修复新增管理员无头像问题。

---
 application/admin/controller/auth/Admin.php | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/application/admin/controller/auth/Admin.php b/application/admin/controller/auth/Admin.php
index 82cc7b9..23a36e4 100644
--- a/application/admin/controller/auth/Admin.php
+++ b/application/admin/controller/auth/Admin.php
@@ -90,6 +90,7 @@ class Admin extends Backend
             {
                 $params['salt'] = Random::alnum();
                 $params['password'] = md5(md5($params['password']) . $params['salt']);
+                $params['avatar'] = '/assets/img/avatar.png'; //设置新管理员默认头像。
 
                 $admin = $this->model->create($params);
                 $group = $this->request->post("group/a");
--
libgit2 0.24.0