提示优化
This commit is contained in:
@@ -162,7 +162,7 @@ class CustomerController
|
||||
$id = Util::getParam($request, 'id');
|
||||
$channel_id = Util::getParam($request, 'channel_id');
|
||||
if (Util::isEmpty($channel_id)) {
|
||||
return Util::fail([], 'channel_id' . trans('not_null'));
|
||||
return Util::fail([], trans('channel_not_null'));
|
||||
}
|
||||
$country_id = Util::getParam($request, 'country_id', 0);
|
||||
if (Util::isEmpty($country_id)) {
|
||||
@@ -170,13 +170,13 @@ class CustomerController
|
||||
}
|
||||
$car_type_id = Util::getParam($request, 'car_type_id');
|
||||
if (Util::isEmpty($car_type_id)) {
|
||||
return Util::fail([], 'car_type_id' . trans('not_null'));
|
||||
return Util::fail([], trans('car_type_not_null'));
|
||||
}
|
||||
$contacts = Util::getParam($request, 'contacts');
|
||||
$email = Util::getParam($request, 'email');
|
||||
$phone = Util::getParam($request, 'phone');
|
||||
if (Util::isEmpty($contacts) && Util::isEmpty($email) && Util::isEmpty($phone)) {
|
||||
return Util::fail([], 'country_id' . trans('not_null'));
|
||||
return Util::fail([], trans('contacts_not_null'));
|
||||
}
|
||||
|
||||
$data = [
|
||||
|
||||
Reference in New Issue
Block a user