Sfoglia il codice sorgente

更新管理员默认头像

evoxwht 2 anni fa
parent
commit
e19572a54a

+ 1 - 0
crmeb/app/services/system/admin/SystemAdminServices.php

@@ -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)) {

+ 1 - 1
crmeb/public/install/crmeb.sql

@@ -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);
 
 -- --------------------------------------------------------
 

BIN
crmeb/public/statics/system_images/admin_head_pic.png