Skip to content

Commit 8a58055

Browse files
committed
修改头像路径
1 parent 2455ae6 commit 8a58055

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/Command/InitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function handle()
5151
$user->mobile = '1800000000';
5252
$user->sex = User::SEX_BY_MALE;
5353
$user->email = 'admin@admin.com';
54-
$user->avatar = 'http://landlord-res.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1, 10) .'.png';
54+
$user->avatar = 'https://shmily-album.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1, 10) .'.png';
5555
$user->save();
5656
$super_role = [
5757
'name' => 'super_admin',

app/Controller/Auth/UserController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function store()
129129
$user->username = $postData['username'];
130130
$user->password = md5($postData['password']);
131131
$user->status = $postData['status'] ?? '1';
132-
$user->avatar = empty($postData['avatar']) ? 'http://landlord-res.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1,10) .'.png' : $postData['avatar'];
132+
$user->avatar = empty($postData['avatar']) ? 'https://shmily-album.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1,10) .'.png' : $postData['avatar'];
133133
$user->last_login = time();
134134
$user->last_ip = getClientIp($this->request);
135135
$user->creater = $postData['creater'] ?? '';
@@ -313,7 +313,7 @@ public function update(int $id)
313313

314314
$user = User::getOneByUid($id);
315315
$user->status = $postData['status'] ?? '1';
316-
$user->avatar = $postData['avatar'] ?? 'http://landlord-res.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1,10) .'.png';
316+
$user->avatar = $postData['avatar'] ?? 'https://shmily-album.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1,10) .'.png';
317317
$user->desc = $postData['desc'] ?? '';
318318
$user->mobile = $postData['mobile'] ?? '';
319319
$user->sex = $postData['sex'] ?? '';

app/Service/Auth/LoginService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function register(array $params) : bool
9494
$user->username = $postData['username'];
9595
$user->password = md5($postData['password']);
9696
$user->status = User::STATUS_ON;
97-
$user->avatar = 'http://landlord-res.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1,10) .'.png';
97+
$user->avatar = 'https://shmily-album.oss-cn-shenzhen.aliyuncs.com/admin_face/face' . rand(1,10) .'.png';
9898
$user->last_login = time();
9999
$user->last_ip = getClientIp($this->request);
100100
$user->creater = '';

0 commit comments

Comments
 (0)