This commit is contained in:
2025-06-24 13:43:45 +08:00
parent c9674a6ad9
commit 7711b76ac3
4 changed files with 10 additions and 4 deletions
+7 -4
View File
@@ -123,10 +123,13 @@ class FollowController
if(Util::isEmpty($type)){
return Util::fail([],'type'.trans('not_null'));
}
// $picture = Util::getParam($request,'picture');
// if(Util::isEmpty($picture)){
// return Util::fail([],trans('picture_not_null'));
// }
$picture = Util::getParam($request,'picture');
$audio_text = Util::getParam($request,'audio_text');
$remark = Util::getParam($request,'remark');
if(Util::isEmpty($picture) && Util::isEmpty($audio_text) && Util::isEmpty($remark)){
return Util::fail([],trans('follow_not_null'));
}
$data = [
'user_id'=>$request->user['id'],
+1
View File
@@ -22,6 +22,7 @@ return [
'param_error' => ' param error',
'required_not_null' => ' required not_ ull',
'picture_not_null' => ' picture not null',
'follow_not_null' => ' The image and follow-up content cannot be empty at the same time',
'contacts_not_null' => ' Contact person, email, and phone cannot be empty at the same time',
'car_type_not_null' => ' preference_not_null',
'channel_not_null' => ' channel not null',
+1
View File
@@ -22,6 +22,7 @@ return [
'param_error' => ' Ошибка параметра',
'required_not_null' => ' Обязательное заполнение не может быть пустым.',
'picture_not_null' => ' Фотографии не могут быть пустыми',
'follow_not_null' => ' Изображение и последующий контент не могут быть пустыми одновременно.X',
'contacts_not_null' => ' Контакты, почтовый ящик, телефон не может быть одновременно пустым',
'car_type_not_null' => ' Предпочтения не могут быть пустыми',
'channel_not_null' => ' Каналы не могут быть пустыми',
+1
View File
@@ -22,6 +22,7 @@ return [
'param_error' => ' 参数错误',
'required_not_null' => ' 必填项不能为空',
'picture_not_null' => ' 图片不能为空',
'follow_not_null' => ' 图片与跟进内容不能同时为空',
'contacts_not_null' => ' 联系人,邮箱,电话不能同时为空',
'car_type_not_null' => ' 偏好不能为空',
'channel_not_null' => ' 渠道不能为空',