File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ' ,
Original file line number Diff line number Diff 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 ' ] ?? '' ;
Original file line number Diff line number Diff 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 = '无 ' ;
You can’t perform that action at this time.
0 commit comments