123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace app\api\controller;
- class MemberMessage extends MobileMember
- {
- public function initialize()
- {
- parent::initialize();
- }
-
- public function get_list()
- {
- $member_id = $this->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('/(<a.*?>[\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)));
- }
- }
|