Skip to content

Commit

Permalink
修复索引文件路径
Browse files Browse the repository at this point in the history
  • Loading branch information
vanry committed Aug 3, 2020
1 parent dc723ef commit 2236618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines/TNTSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ public function flush($model)

protected function getIndexPath($model)
{
return sprintf('%s/%s.index', $this->tnt->config['storage'], $model->searchableAs());
return sprintf('%s/%s.index', rtrim($this->tnt->config['storage'], '/'), $model->searchableAs());
}
}

0 comments on commit 2236618

Please sign in to comment.