From f2be386421c38e06a42716949cdc3596645bf8ce Mon Sep 17 00:00:00 2001 From: weigang Date: Sat, 12 Sep 2020 20:22:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E9=80=81=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/OrderOnlineService.php | 1 + app/Service/v3/Implementations/ServiceEvaluateService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/OrderOnlineService.php b/app/Service/v3/Implementations/OrderOnlineService.php index 6899757..f6e6af7 100644 --- a/app/Service/v3/Implementations/OrderOnlineService.php +++ b/app/Service/v3/Implementations/OrderOnlineService.php @@ -95,6 +95,7 @@ class OrderOnlineService implements OrderOnlineServiceInterface protected $badgeService; /** + * @Inject * @var InitialDeliveryServiceInterface */ protected $initialDeliveryService; diff --git a/app/Service/v3/Implementations/ServiceEvaluateService.php b/app/Service/v3/Implementations/ServiceEvaluateService.php index d0cbbb6..aa4a093 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('join_time'); + $data['user_created_at'] = User::where(['id' => $data['user_id']])->value('created_at'); $evaluateExist = ServiceEvaluate::where(['user_id' => $data['user_id']])->exists(); $data['is_new_user'] = 0;