update fix deadcode, security
This commit is contained in:
@@ -139,13 +139,6 @@ class OrderRepository extends BaseRepository implements OrderRepositoryInterface
|
||||
|
||||
return $model->find($id);
|
||||
}
|
||||
public function updateBy(string $key = '', string|int $value = '', array $data = [])
|
||||
{
|
||||
if (empty($key) || empty($value)) {
|
||||
return false;
|
||||
}
|
||||
return $this->model->where($key, $value)->update($data);
|
||||
}
|
||||
|
||||
public function findByOrderNum(string $orderNum)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user