$uid, 'room_id' => $room_id ], ['created_at' => time()]); return $profile; } catch (\Exception $e) { $model = new RoomProfileModel(); $model->fill(array( 'uid' => $uid, 'room_id' => $room_id, 'created_at' => time(), 'is_into_notive' => 1, 'is_receive_msg' => 1, 'last_pull_msg' => 0, 'last_clear_msg' => 0, 'forbid' => 0 )); return $model; } } }