12345678910111213141516171819 |
- <?php namespace Msg\Lib;
- use Dever;
- class Manage
- {
- # 发送消息
- public function showRecord($id, $type = 'code')
- {
- $info = Dever::db('code', 'msg')->find($id);
- if (is_object($info['record'])) {
- $info['record'] = (array)$info['record'];
- }
- if (is_array($info['record'])) {
- $info['record'] = Dever::json_encode($info['record']);
- }
- $result['type'] = 'string';
- $result['content'] = $info['record'];
- return $result;
- }
- }
|