|
...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Logic\Bside\BTemplate;
|
|
|
|
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Template\TemplateLabel;
|
|
|
|
use App\Models\Template\TemplateModule;
|
|
|
|
use App\Models\Template\TemplateType;
|
|
|
|
|
|
...
|
...
|
@@ -25,8 +26,13 @@ class BTemplateModuleLogic extends BaseLogic |
|
|
|
public function ModuleList($map,$order = 'created_at',$filed = ['id','name','type','sort','status','image','test_model']){
|
|
|
|
$map['deleted_status'] = 0;
|
|
|
|
$map['status'] = 0;
|
|
|
|
$lists = $this->model->list($map,$order,$filed);
|
|
|
|
return $this->success($lists);
|
|
|
|
$list = $this->model->list($map,$order,$filed);
|
|
|
|
$templateLabel = new TemplateLabel();
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
$v['label'] = $templateLabel->list(['template_id'=>$v['id'],'type'=>2],'id',['id','name'],'desc',5);
|
|
|
|
$list[$k] = $v;
|
|
|
|
}
|
|
|
|
return $this->success($list);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|