diff --git a/admin/controllers/Common.php b/admin/controllers/Common.php index 4a80ac74..3fabfd8e 100644 --- a/admin/controllers/Common.php +++ b/admin/controllers/Common.php @@ -1154,7 +1154,7 @@ class Common extends CI_Controller $tp == 0 && $lists[] = array('id' => 0, 'name' => $name ? $name : '选择车型'); $res = $this->mdAutoCar->select(array_merge($where, ['series_id' => $pid]), 'id asc', 0, 0, 'id,name'); } - foreach ($res as $key => $value) { + foreach ($res as $value) { $lists[] = array('id' => $value['id'], 'name' => $value['name']); } $this->data = $lists; diff --git a/admin/views/autohome/lists.php b/admin/views/autohome/lists.php index 80277e06..1eaf46eb 100644 --- a/admin/views/autohome/lists.php +++ b/admin/views/autohome/lists.php @@ -268,7 +268,7 @@ }, init_cfrom2: function () { var vm = this; - $.get('autohome/customer/json_map_cfrom', {pid: vm.cfrom_id}, function (response) { + $.post('autohome/customer/json_map_cfrom', {pid: vm.cfrom_id}, function (response) { if (response.code == 1) { vm.cfromAry2 = response.data; }