Skip to content

Commit 71b7ff5

Browse files
authored
fix: adapter 保存策略save修改为insert (#32)
1 parent 8987da4 commit 71b7ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter/DatabaseAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function savePolicyLine($ptype, array $rule)
5858
foreach ($rule as $key => $value) {
5959
$col['v'.strval($key).''] = $value;
6060
}
61-
$this->model->cache('tauthz')->save($col);
61+
$this->model->cache('tauthz')->insert($col);
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)