getMemberList($condition, '*', 10, 'member_id desc'); //整理会员信息 if (is_array($member_list) && !empty($member_list)) { foreach ($member_list as $k => $v) { $member_list[$k]['member_addtime'] = $v['member_addtime'] ? date('Y-m-d H:i:s', $v['member_addtime']) : ''; } } View::assign('search_field_name', trim($search_field_name)); View::assign('search_field_value', trim($search_field_value)); View::assign('member_list', $member_list); View::assign('show_page', $member_model->page_info->render()); View::assign('filtered', $filtered); //是否有查询条件 $this->setAdminCurItem('index'); return View::fetch(); } public function verify(){ $member_id = input('param.member_id'); $state = input('param.state'); $message = input('param.message'); $member_id_array = ds_delete_param($member_id); if ($member_id_array == FALSE || !in_array($state, array(1,2))) { ds_json_encode(10001, lang('param_error')); } if($state==1){ $update=array('member_auth_state'=>3); }else{ $update=array('member_auth_state'=>2); } $condition = array(); $condition[] = array('member_auth_state','=',1); $condition[] = array('member_id','in',$member_id_array); if(!model('member')->editMember($condition,$update)){ ds_json_encode(10001, lang('ds_common_op_fail')); } if($message){ //添加短消息 $message_model = model('message'); $insert_arr = array(); $insert_arr['from_member_id'] = 0; $insert_arr['member_id'] = "," . implode(',', $member_id_array) . ","; $insert_arr['msg_content'] = lang('member_auth_fail').':'.$message; $insert_arr['message_type'] = 1; $insert_arr['message_ismore'] = 1; $message_model->addMessage($insert_arr); } ds_json_encode(10000, lang('ds_common_op_succ')); } /** * 获取卖家栏目列表,针对控制器下的栏目 */ protected function getAdminItemList() { $menu_array = array( array( 'name' => 'index', 'text' => lang('ds_list'), 'url' => url('MemberAuth/index') ), ); return $menu_array; } } ?>