优化
This commit is contained in:
@@ -48,6 +48,7 @@ class Customer extends Model
|
||||
{
|
||||
$customer['grade_txt'] = Constants::GRADE[$customer['grade']];
|
||||
$customer['magnitude_txt'] = Constants::MAGNITUDE[$customer['magnitude']];
|
||||
$customer['sex_txt'] = Constants::SEX[$customer['sex']];
|
||||
|
||||
if ($customer['grade']<=2) {
|
||||
$customer['follow'] = 0;
|
||||
@@ -67,6 +68,8 @@ class Customer extends Model
|
||||
->where($where)
|
||||
->min('created_at');
|
||||
$customer['begin_follow'] = $begin_follow;
|
||||
$customer['created_at'] = Util::timeTotDate($customer['created_at']);
|
||||
$customer['updated_at'] = Util::timeTotDate($customer['updated_at']);
|
||||
// $customer['last_follow'] = $last_follow;
|
||||
|
||||
return $customer;
|
||||
|
||||
Reference in New Issue
Block a user