From 688f3ae987a4c44ebaff3471103b6a7b0736c24f Mon Sep 17 00:00:00 2001 From: weigang Date: Sat, 12 Sep 2020 20:28:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/ServiceEvaluateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/ServiceEvaluateService.php b/app/Service/v3/Implementations/ServiceEvaluateService.php index aa4a093..d7c7724 100644 --- a/app/Service/v3/Implementations/ServiceEvaluateService.php +++ b/app/Service/v3/Implementations/ServiceEvaluateService.php @@ -14,7 +14,7 @@ class ServiceEvaluateService implements ServiceEvaluateServiceInterface public function evaluate($data) { // 当前用户是否今日新注册并第一次提交评论 - $data['user_created_at'] = User::where(['id' => $data['user_id']])->value('created_at'); + $data['user_created_at'] = strtotime(User::where(['id' => $data['user_id']])->value('created_at')); $evaluateExist = ServiceEvaluate::where(['user_id' => $data['user_id']])->exists(); $data['is_new_user'] = 0;