Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cc9e5a72
authored
Nov 27, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片大小改为10mb
parent
bb5a2b18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/Api/Controllers/DoctorController.php
+1
-1
app/Api/Controllers/PharmacistController.php
+2
-2
No files found.
app/Api/Controllers/DoctorController.php
View file @
cc9e5a72
...
...
@@ -34,7 +34,7 @@ public function upload(Request $request)
{
// 验证上传的图片文件
$validator
=
Validator
::
make
(
$request
->
all
(),
[
'image'
=>
'required|image|mimes:jpeg,png,jpg|max:
2048
'
,
'image'
=>
'required|image|mimes:jpeg,png,jpg|max:
10240
'
,
]);
if
(
$validator
->
fails
())
{
return
$this
->
failed
(
'图片必须2Mb以内,且是jpeg,png,jpg三种格式~'
);
...
...
app/Api/Controllers/PharmacistController.php
View file @
cc9e5a72
...
...
@@ -51,7 +51,7 @@ public function uploadCertificate(Request $request)
// 验证上传的图片文件
$validator
=
Validator
::
make
(
$request
->
all
(),
[
'image'
=>
'required|image|mimes:jpeg,png,jpg|max:
2048
'
,
'image'
=>
'required|image|mimes:jpeg,png,jpg|max:
10240
'
,
]);
if
(
$validator
->
fails
())
{
return
$this
->
failed
(
'图片必须2Mb以内,且是jpeg,png,jpg三种格式~'
);
...
...
@@ -156,7 +156,7 @@ public function upload(Request $request)
// 验证上传的图片文件
$validator
=
Validator
::
make
(
$request
->
all
(),
[
'image'
=>
'required|image|mimes:jpeg,png,jpg|max:
2048
'
,
'image'
=>
'required|image|mimes:jpeg,png,jpg|max:
10240
'
,
]);
if
(
$validator
->
fails
())
{
return
$this
->
failed
(
'图片必须2Mb以内,且是jpeg,png,jpg三种格式~'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment