Commit 96ad8405 by LiuJunYi

美行者攻略BUG

parent 5a895cc8
...@@ -41,7 +41,7 @@ class Guide extends AuthBase ...@@ -41,7 +41,7 @@ class Guide extends AuthBase
$type = input("post.type"); $type = input("post.type");
$data = array( $data = array(
'title' => input("post.title"), 'title' => input("post.title"),
'tags' => input("post.tags"), 'tags' => input("post.tags/a"),
'poster' => input('file.poster') 'poster' => input('file.poster')
); );
if ($type == 1) { if ($type == 1) {
...@@ -126,6 +126,7 @@ class Guide extends AuthBase ...@@ -126,6 +126,7 @@ class Guide extends AuthBase
'type' => $type, 'type' => $type,
'content' => htmlspecialchars_decode($data['content']) 'content' => htmlspecialchars_decode($data['content'])
]; ];
if (input('file.poster')) { if (input('file.poster')) {
//上传封面到七牛云 //上传封面到七牛云
$upload = new Upload(); $upload = new Upload();
......
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