read($this->id, $this->user['msg_type'], true, false, 3); $html = ''; if ($data) { foreach ($data as $k => $v) { $data[$k]['cdate_string'] = Dever::ddate($v['cdate']); if ($v['param']) { $data[$k]['param'] = Dever::json_decode($v['param']); } $read = Dever::url('admin/msg.read', 'store'); $button = ''; if ($v['link']) { $button = '查看'; } elseif ($v['param'] && strstr($v['param'], '{')) { $data[$k]['param'] = Dever::json_decode($v['param']); if ($data[$k]['param']) { $view = ''; if ($data[$k]['param']['type'] == 1) { $view = Dever::url('order_view?type=2&order_id=' . $data[$k]['param']['id'], 'store'); } elseif ($data[$k]['param']['type'] == 2) { $view = Dever::url('stat_view?id=' . $data[$k]['param']['id'] . '&type=store&show=2', 'store'); } elseif ($data[$k]['param']['type'] == 3) { $view = Dever::url('order_view?type=3&order_id=' . $data[$k]['param']['id'], 'store'); } if ($view) { $button = ''; } } } if (!$button) { $button = '查看'; } $html .= '