'timestamp', ]; public function statusList() { return ['offline' => '离线', 'online' => '在线', 'busy' => '忙碌']; } public function getAuthModelAttr($value, $data) { return $this->customer_service_user['auth_model'] ?? null; } public function getAuthTextAttr($value, $data) { return $this->customer_service_user['auth_text'] ?? null; } public function customerService() { return $this->morphMany(Record::class, ['sender_identify', 'sender_id'], 'customer_service'); } public function customerServiceUser() { return $this->HasOne(CustomerServiceUser::class, 'customer_service_id'); } }