|
...
|
...
|
@@ -124,11 +124,11 @@ 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['design_msg'])){
|
|
|
|
$info['design_msg'] = json_decode($info['design_msg']);
|
|
|
|
}
|
|
|
|
if(!empty($info['front_manager'])){
|
|
|
|
$info['front_manager'] = (new Manage())->getName($info['front_manager']);
|
|
|
|
if(!empty($info['front_msg'])){
|
|
|
|
$info['front_msg'] = json_decode($info['front_msg']);
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
...
|
...
|
@@ -261,15 +261,11 @@ class ATemplateLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
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'];
|
|
|
|
if(isset($this->param['design_msg']) && !empty($this->param['design_msg'])){
|
|
|
|
$this->param['design_msg'] = json_decode($this->param['design_msg']);
|
|
|
|
}
|
|
|
|
if(isset($this->param['front_msg']) && !empty($this->param['front_msg'])){
|
|
|
|
$this->param['front_msg'] = json_decode($this->param['front_msg']);
|
|
|
|
}
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
...
|
...
|
|