$v) { if (isset($data[$k . '_s']) && isset($data[$k . '_e'])) { $temp = explode(',', $v); if (isset($temp[0])) { $update[$k . '_s'] = $temp[0]; } if (isset($temp[1])) { $update[$k . '_e'] = $temp[1]; } } } if (isset($update)) { $update['where_id'] = $id; Dever::db($name)->update($update); } } /** * 更新属性信息 * * @return mixed */ public function infoUpdate($id, $name, $data) { $is_sell = Dever::param('is_sell', $data); if ($is_sell > 1) { $update['type'] = 11; } if (isset($update)) { $update['where_id'] = $id; Dever::db('attr/info')->update($update); } } }