Commit cc27fb0a by 孙龙

up

parent af0b14b7
Showing with 3 additions and 0 deletions
...@@ -236,6 +236,9 @@ Class AjaxController extends Controller ...@@ -236,6 +236,9 @@ Class AjaxController extends Controller
return $this->ajaxReturn(-1,"没找到属于您的模板信息"); return $this->ajaxReturn(-1,"没找到属于您的模板信息");
} }
$templateInfo = TemplateListModel::where("id",intval($id))->select("id","template_name","status")->first(); $templateInfo = TemplateListModel::where("id",intval($id))->select("id","template_name","status")->first();
if($templateInfo->status <= 0){
return $this->ajaxReturn(-1,"改模板已经被主人禁用了");
}
$templateInfo->template_extend = $templateInfo->template_extend; $templateInfo->template_extend = $templateInfo->template_extend;
return $this->ajaxReturn(0,"ok",$templateInfo); return $this->ajaxReturn(0,"ok",$templateInfo);
......
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 sign in to comment