diff --git a/app/common/model/InquiryLog.php b/app/common/model/InquiryLog.php index 798b267..4d8b483 100644 --- a/app/common/model/InquiryLog.php +++ b/app/common/model/InquiryLog.php @@ -60,9 +60,13 @@ class InquiryLog extends Model return $this->hasOne(User::class, 'id', 'enter_user_id'); } + // public function recipientInfo() + // { + // return $this->hasOne(User::class, 'id', 'recipient')->where('status', 1); + // } public function recipientInfo() { - return $this->hasOne(User::class, 'id', 'recipient')->where('status', 1); + return $this->hasOne(User::class, 'id', 'recipient'); } public function channelInfo()