作者 lyh

gx

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