|
@@ -55,6 +55,20 @@ class Uuser extends Controller
|
|
|
foreach($data as &$v) {
|
|
|
$v['levels'] = $v['level'];
|
|
|
$v['level'] = $level[$v['level']];
|
|
|
+//
|
|
|
+// $len = strlen($v['content']);
|
|
|
+// $str = '';
|
|
|
+// $num = ceil($len/20);
|
|
|
+// for ($i=0;$i<$num;$i++) {
|
|
|
+// if ($i==0) {
|
|
|
+// $str = substr($v['content'],0,20);
|
|
|
+//
|
|
|
+// } else {
|
|
|
+// $str = $str. substr($v['content'],$i*20,$i*20+20).'<br />';
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// $v['content'] = $str;
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -124,6 +138,7 @@ class Uuser extends Controller
|
|
|
$data['username'] = $post['username'];
|
|
|
$data['mobile'] = $post['mobile'];
|
|
|
$data['avatar'] = $post['avatar'];
|
|
|
+ $data['content'] = $post['content'];
|
|
|
|
|
|
$upd = Db::name('user')->where('id',$post['id'])->update($data);
|
|
|
|