select(array('servicer_id' => $id)); if ($data) { $status = Dever::db('scm_role/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 '暂无'; } } }