统计
This commit is contained in:
@@ -238,10 +238,10 @@ class CustomerController extends BaseController
|
||||
if (Util::isEmpty($country_id)) {
|
||||
// return $this->error('country_id'.trans('not_null'));
|
||||
}
|
||||
$car_type_id = Util::getParam($request, 'car_type_id');
|
||||
if (Util::isEmpty($car_type_id)) {
|
||||
return $this->error(trans('car_type_not_null'));
|
||||
}
|
||||
// $car_type_id = Util::getParam($request, 'car_type_id');
|
||||
// if (Util::isEmpty($car_type_id)) {
|
||||
// return $this->error(trans('car_type_not_null'));
|
||||
// }
|
||||
$contacts = Util::getParam($request, 'contacts');
|
||||
$email = Util::getParam($request, 'email');
|
||||
$phone = Util::getParam($request, 'phone');
|
||||
@@ -358,7 +358,8 @@ class CustomerController extends BaseController
|
||||
}
|
||||
$userId = $request->user->uid;
|
||||
//$created_at = $request->user['created_at'];
|
||||
$created_at = User::find($userId)->created_at;
|
||||
$created_at = User::find($userId)->value('created_at');
|
||||
$created_at = strtotime($created_at);
|
||||
$day = ceil((time() - $created_at + 1) / 60 / 60 / 24);
|
||||
$where[] = ['user_id', '=', $userId];
|
||||
$where[] = ['corp_abbr', '=', $request->basic_data['corp_abbr']];
|
||||
|
||||
Reference in New Issue
Block a user