|
@@ -52,12 +52,13 @@ class DeleteHelper extends Helper
|
|
|
* @throws \think\Exception
|
|
|
* @throws \think\exception\PDOException
|
|
|
*/
|
|
|
- public function init($dbQuery, $field = '', $where = [])
|
|
|
+ public function init($dbQuery, $log = [], $field = '', $where = [])
|
|
|
{
|
|
|
$this->where = $where;
|
|
|
$this->query = $this->buildQuery($dbQuery);
|
|
|
$this->field = empty($field) ? $this->query->getPk() : $field;
|
|
|
$this->value = $this->app->request->post($this->field, null);
|
|
|
+ dump($this->field);die;
|
|
|
// 主键限制处理
|
|
|
if (!isset($this->where[$this->field]) && is_string($this->value)) {
|
|
|
$this->query->whereIn($this->field, explode(',', $this->value));
|