select(array('servicer_id' => $id)); if ($data) { $status = Dever::db('scm_servicer/store')->config['status']; foreach ($data as $k => $v) { $status_name = ''; if ($v['status'] == 2) { $status_name = '(已禁用)'; } $oper = '商品列表'; $table['body'][$k][] = $v['name'] . $status_name; $table['body'][$k][] = $v['code']; $table['body'][$k][] = $oper; } } $body[''] = array ( 'type' => 'table', 'content' => $table, ); if ($table['body']) { return Dever::show('', $body); } else { return '暂无'; } } public function updateGoods($id, $name, $data) { $table = Dever::input('table'); $info = Dever::db('scm_servicer/in_order_goods')->find($id); if ($info) { print_r($info);die; $temp = explode('-', $info['goods']); $update['where_id'] = $id; $update['goods_id'] = $temp[0]; $update['sku_id'] = $temp[1]; Dever::db('scm_servicer/' . $table)->update($update); Dever::config('base')->hook = false; } } }