Commit 40f6a587 authored by 蔡闯's avatar 蔡闯

2021-6-23

parent 52f83a87
...@@ -16,7 +16,7 @@ class Message extends Base ...@@ -16,7 +16,7 @@ class Message extends Base
$limit = Request::param('limit',config('app.limit')); $limit = Request::param('limit',config('app.limit'));
$list =Db::name('message')->alias('m')->page($page,$limit)->order('create_time','desc')->select()->toArray(); $list =Db::name('message')->alias('m')->page($page,$limit)->order('create_time','desc')->select()->toArray();
foreach ($list as $k =>$v) { foreach ($list as $k =>$v) {
$list[$k]['content'] = mb_substr($v['content'],0,50,'utf-8'); // $list[$k]['content'] = mb_substr($v['content'],0,50,'utf-8');
switch ($v['from']){ switch ($v['from']){
case 1: case 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment