member_info['member_id']; $message_model = model('message'); $message_list = $message_model->getMessageList(array('from_to_member_id' => $member_id), 10); foreach ($message_list as $key => $val) { if ($val['message_type'] == 1) { $message_list[$key]['message_body'] = preg_replace('/([\s\S]*?<\/a>)/', '', htmlspecialchars_decode($val['message_body'])); } else { $message_list[$key]['message_body'] = parsesmiles($val['message_body']); } } ds_json_encode(10000, '', array_merge(array('notice_list' => $message_list), mobile_page($message_model->page_info))); } }