From f9d9c6b9d830fddbe7d4460c11a75dd3a3db5396 Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 21 Apr 2021 10:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8C=83=E5=9B=B4=E5=86=85=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E8=A7=84=E5=88=99=EF=BC=8C=E4=BF=9D=E5=AD=98=E5=89=8D=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E5=89=8D=E5=90=8E=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/recommend/controllers/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/third_party/recommend/controllers/index.php b/application/third_party/recommend/controllers/index.php index 86c9057b..5a400e93 100644 --- a/application/third_party/recommend/controllers/index.php +++ b/application/third_party/recommend/controllers/index.php @@ -98,10 +98,10 @@ class Index extends CI_Controller $data[] = array('name' => 'no', 'value' => '查询不到数据,请重试'); } else { $infoRecommend->ir_rule = $this->input->post('ir_rule'); - $infoRecommend->ir_keyword = $this->input->post('ir_keyword'); + $infoRecommend->ir_keyword = trim($this->input->post('ir_keyword')); $infoRecommend->ir_pointer_is_id = $this->input->post('ir_pointer_is_id'); $infoRecommend->ir_pointer_it_id = $this->input->post('ir_pointer_it_id'); - $infoRecommend->ir_urls = $this->input->post('ir_urls'); + $infoRecommend->ir_urls =trim($this->input->post('ir_urls')); $infoRecommend->ir_datetime =time(); $infoRecommend->ir_id = $this->infoRecommends_model->update('infoRecommends', $infoRecommend, 'ir_id=' . $ir_id); $data[] = array('name' => 'ok', 'value' => '保存成功!');