$customer_id, 'to_uid' => $user_id, 'uniacid' => $uniacid, 'intention' => 1 ); $result = $this->where($filter)->count(); return !empty($result); } }