feature/main20240421
郭嘉 6 months ago
parent c5a80c10b6
commit 4624a8be54
  1. 4
      app/admin/controller/Feedback.php
  2. 2
      app/admin/model/Feedback.php
  3. 1
      public/install/data/install_struct.sql

@ -52,6 +52,10 @@ class Feedback extends Controller
// 商城详情
$model = feedbackModel::detail($this->postForm()['feedback_id']);
// 更新记录
$data = [];
$data['answer'] = $this->postForm()['answer'];
$data['feedback_id'] = $this->postForm()['feedback_id'];
$data['deal_time'] = time();
if (!$model->edit($this->postForm())) {
return $this->renderError($model->getError() ?: '更新失败');
}

@ -27,7 +27,7 @@ class Feedback extends \app\common\model\Feedback
public function edit(array $data): bool
{
// 是否删除图片
!isset($data['logo_image_id']) && $data['logo_image_id'] = 0;
//!isset($data['logo_image_id']) && $data['logo_image_id'] = 0;
return $this->save($data) !== false;
}

@ -1794,6 +1794,7 @@ CREATE TABLE `yoshop_feedback` (
`is_delete` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`deal_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '处理时间',
PRIMARY KEY (`feedback_id`),
KEY `store_id` (`store_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='反馈表';

Loading…
Cancel
Save