|
...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
|
|
|
|
|
namespace App\Http\Logic\Bside\BTemplate;
|
|
|
|
|
|
|
|
use App\Http\Logic\Aside\BaseLogic;
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Template\TemplateLabel;
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -49,7 +49,7 @@ class BTemplateLabelLogic extends BaseLogic |
|
|
|
}else{
|
|
|
|
$info = $this->model->read(['name'=>$this->param['name'],'template_id'=>$this->param['template_id']],['id']);
|
|
|
|
if($info === false){
|
|
|
|
$this->param['manager_id'] = $this->manager['id'];
|
|
|
|
$this->param['manager_id'] = $this->user['manager_id'] ?? 0;
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
}else{
|
|
|
|
$id = $info['id'];
|
...
|
...
|
|