|
...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Logic\Aside\Template;
|
|
|
|
|
|
|
|
use App\Http\Logic\Aside\BaseLogic;
|
|
|
|
use App\Models\Manage\Manage;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Models\Service\Service as ServiceSettingModel;
|
|
|
|
use App\Models\Template\BTemplate;
|
|
...
|
...
|
@@ -123,6 +124,12 @@ class ATemplateLogic extends BaseLogic |
|
|
|
if(!empty($info['image'])){
|
|
|
|
$info['image_link'] = getImageUrl($info['image']);
|
|
|
|
}
|
|
|
|
if(!empty($info['design_manager'])){
|
|
|
|
$info['design_manager'] = (new Manage())->getName($info['design_manager']);
|
|
|
|
}
|
|
|
|
if(!empty($info['front_manager'])){
|
|
|
|
$info['front_manager'] = (new Manage())->getName($info['front_manager']);
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -244,4 +251,30 @@ class ATemplateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :修改状态
|
|
|
|
* @name :auditingStatus
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/23 16:44
|
|
|
|
*/
|
|
|
|
public function auditingStatus(){
|
|
|
|
//获取当前数据详情
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
if(isset($this->param['front_status']) && $this->param['front_status'] == 1){
|
|
|
|
if($info['design_status'] == 0){
|
|
|
|
$this->fail('请先提交设计审核');
|
|
|
|
}
|
|
|
|
$this->param['design_manager'] = $this->manager['id'];
|
|
|
|
$this->param['test_model'] = 0;
|
|
|
|
}else{
|
|
|
|
$this->param['front_manager'] = $this->manager['id'];
|
|
|
|
}
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('修改失败,请联系管理员');
|
|
|
|
}
|
|
|
|
return $this->success(['id'=>$this->param['id']]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|