mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-30 15:50:24 +00:00
修复清楚数据sql 函数
This commit is contained in:
parent
741e845e4d
commit
364ed0d3dc
@ -130,9 +130,9 @@ class SystemclearData extends AuthController
|
||||
public function clearData($table_name,$status){
|
||||
$table_name = Config::get('database')['prefix'].$table_name;
|
||||
if($status){
|
||||
@db::query('TRUNCATE TABLE '.$table_name);
|
||||
@db::execute('TRUNCATE TABLE '.$table_name);
|
||||
}else{
|
||||
@db::query('DELETE FROM'.$table_name);
|
||||
@db::execute('DELETE FROM'.$table_name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user