@ -41,7 +41,7 @@ class Square extends Controller
if (!$content) {
return $this->renderError('内容不能为空');
}
$cate = intval($this->request->post('cate'));
$cate = $this->request->post('cate');
if (!$cate) {
return $this->renderError('分类不能为空');