Commit af0b14b7 by 孙龙

up

parent 09d5ba0b
Showing with 2 additions and 4 deletions
...@@ -235,10 +235,8 @@ Class AjaxController extends Controller ...@@ -235,10 +235,8 @@ Class AjaxController extends Controller
if($count <= 0){ if($count <= 0){
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))->first(); $templateInfo->template_extend = $templateInfo->template_extend;
$templateInfo->html = $templateInfo->template_extend->html;
$templateInfo->attribute = $templateInfo->template_extend->attribute;
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