代码提交
This commit is contained in:
@@ -28,8 +28,7 @@ class Attachment extends Controller
|
|||||||
$validate = \think\facade\Validate::rule([
|
$validate = \think\facade\Validate::rule([
|
||||||
'file' => [
|
'file' => [
|
||||||
'fileSize' => 10485760, // 10MB
|
'fileSize' => 10485760, // 10MB
|
||||||
'fileExt' => 'jpg,jpeg,png,gif,doc,docx,pdf,zip,rar,mp4,mp3',
|
'fileExt' => 'jpg,jpeg,png,gif,doc,docx,pdf,zip,rar,mp4,mp3,csv,xlsx,xls',
|
||||||
'fileMime' => 'image/jpeg,image/png,image/gif,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf,application/zip,application/x-rar-compressed,video/mp4,audio/mp3'
|
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -127,9 +127,6 @@ class PostCreateAddFriendPlanV1Controller extends Controller
|
|||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
print_r($data);
|
|
||||||
exit;
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
|
|||||||
Reference in New Issue
Block a user