fixed:批量删除
This commit is contained in:
parent
fae47bf246
commit
d1a42637fe
@ -2,6 +2,8 @@
|
||||
|
||||
namespace catcher\traits\db;
|
||||
|
||||
use catcher\Utils;
|
||||
|
||||
trait BaseOptionsTrait
|
||||
{
|
||||
/**
|
||||
@ -91,7 +93,7 @@ trait BaseOptionsTrait
|
||||
*/
|
||||
public function deleteBy($id, $force = false)
|
||||
{
|
||||
return static::destroy($id, $force);
|
||||
return static::destroy(Utils::stringToArrayBy($id), $force);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user