|
@@ -68,7 +68,6 @@ class DeleteHelper extends Helper
|
|
|
}
|
|
|
|
|
|
$info = $this->query->where($this->field,$this->value)->find();
|
|
|
- dump($info);die;
|
|
|
|
|
|
// 执行删除操作
|
|
|
if (method_exists($this->query, 'getTableFields') && in_array('is_deleted', $this->query->getTableFields())) {
|
|
@@ -83,8 +82,14 @@ class DeleteHelper extends Helper
|
|
|
}
|
|
|
// 回复前端结果
|
|
|
if ($result !== false) {
|
|
|
+ if ($log && isset($log['action'])){
|
|
|
+ sysoplog($log['action'], '删除成功'.json_encode($info,true));
|
|
|
+ }
|
|
|
$this->controller->success(lang('think_library_delete_success'), '');
|
|
|
} else {
|
|
|
+ if ($log && isset($log['action'])){
|
|
|
+ sysoplog($log['action'], '删除失败'.$this->field.":".$this->value);
|
|
|
+ }
|
|
|
$this->controller->error(lang('think_library_delete_error'));
|
|
|
}
|
|
|
}
|