作者 lyh

gx

... ... @@ -231,9 +231,10 @@ class ATemplateController extends BaseController
* @time :2023/6/28 16:34
*/
public function getProjectPublicTemplate(ATemplateLogic $aTemplateLogic){
$filed = ['id','name','image','url','status','sort','deleted_status','test_model','created_at','project_id'];
$filed = ['id','name','image','url','status','sort','deleted_status','test_model','project_id','created_at','project_id'];
$this->map['project_id'] = ['!=',0];
$this->map['deleted_status'] = 0;
$this->map['test_model'] = 2;
$lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order,$filed);
if(!empty($lists) && !empty($lists['list'])){
foreach ($lists['list'] as $k => $v){
... ...
... ... @@ -524,6 +524,7 @@ class BTemplateLogic extends BaseLogic
*/
public function savePublicTemplateHtml(){
$this->param['project_id'] = $this->user['project_id'];
$this->param['test_model'] = 2;//未审核模版
$this->param['operator_id'] = $this->user['manager_id'] ?? 0;
$this->param = $this->stringProcessing($this->param);
$publicTemplateModel = new Template();
... ...