mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信手机预览
This commit is contained in:
parent
6ca1bc7bf8
commit
f6e74cc7b7
@ -27,11 +27,8 @@ class Review extends Controller {
|
||||
*/
|
||||
public function index() {
|
||||
$get = $this->request->get();
|
||||
// 内容
|
||||
$content = $this->request->get('content', '');
|
||||
$this->assign('content', str_replace("\n", '<br>', $content));
|
||||
// 类型
|
||||
$type = $this->request->get('type', 'text');
|
||||
$content = str_replace("\n", "<br>", $this->request->get('content', '')); // 内容
|
||||
$type = $this->request->get('type', 'text'); // 类型
|
||||
$this->assign('type', $type);
|
||||
// 图文处理
|
||||
if ($type === 'news' && is_numeric($content) && !empty($content)) {
|
||||
@ -44,6 +41,7 @@ class Review extends Controller {
|
||||
$this->assign('vo', $article);
|
||||
}
|
||||
$this->assign($get);
|
||||
$this->assign('content', $content);
|
||||
// 渲染模板并显示
|
||||
return view();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user