更新管理员默认头像

This commit is contained in:
evoxwht 2023-04-28 14:26:26 +08:00
parent 8e84eaf838
commit e19572a54a
3 changed files with 2 additions and 1 deletions

View File

@ -263,6 +263,7 @@ class SystemAdminServices extends BaseServices
$data['pwd'] = $this->passwordHash($data['pwd']);
$data['add_time'] = time();
$data['roles'] = implode(',', $data['roles']);
$data['head_pic'] = '/statics/system_images/admin_head_pic.png';
return $this->transaction(function () use ($data) {
if ($this->dao->save($data)) {

View File

@ -29204,7 +29204,7 @@ CREATE TABLE IF NOT EXISTS `eb_system_admin` (
--
INSERT INTO `eb_system_admin` (`id`, `account`, `head_pic`, `pwd`, `real_name`, `roles`, `last_ip`, `last_time`, `add_time`, `login_count`, `level`, `status`, `division_id`, `is_del`) VALUES
(1, 'admin', '', '$2y$10$Nw3c1OStH4mrTCir9P.wB.J7oeUSwMDMQRuW.4qNTyhcADean.YeS', 'CRMEB', '1', '124.116.164.158', 1669195280, 1669194971, 1, 0, 1, 0, 0);
(1, 'admin', '/statics/system_images/admin_head_pic.png', '$2y$10$Nw3c1OStH4mrTCir9P.wB.J7oeUSwMDMQRuW.4qNTyhcADean.YeS', 'CRMEB', '1', '124.116.164.158', 1669195280, 1669194971, 1, 0, 1, 0, 0);
-- --------------------------------------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB