Commit 77292988 by 孙龙

up

parent 9f7b9c53
Showing with 3 additions and 3 deletions
......@@ -196,7 +196,7 @@ Class AjaxController extends Controller
}
$templateInfo = TemplateListModel::where("id",intval($id))->select("id","template_name","status")->first();
if($templateInfo->status <= 0){
return $this->ajaxReturn(-1,"模板已经被主人禁用了");
return $this->ajaxReturn(-1,"模板已经被主人禁用了");
}
$data['t_id'] = intval($id);
......@@ -215,7 +215,7 @@ Class AjaxController extends Controller
"html"=>$data['html'],
"attribute"=>json_encode($data['attribute']),
]);
if(!$templateExtend){
if($templateExtend === false){
throw new \Exception("修改模板属性失败",-1);
}
});
......@@ -279,7 +279,7 @@ Class AjaxController extends Controller
}
$templateInfo = TemplateListModel::where("id",intval($id))->select("id","template_name","status")->first();
if($templateInfo->status <= 0){
return $this->ajaxReturn(-1,"模板已经被主人禁用了");
return $this->ajaxReturn(-1,"模板已经被主人禁用了");
}
$templateInfo->template_extend = isset($templateInfo->template_extend) ? $templateInfo->template_extend : null;
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