|
@@ -12,6 +12,7 @@ use App\Models\Com\NoticeLog; |
|
@@ -12,6 +12,7 @@ use App\Models\Com\NoticeLog; |
|
12
|
use App\Models\Com\UpdateLog;
|
12
|
use App\Models\Com\UpdateLog;
|
|
13
|
use App\Models\Devops\ServerConfig;
|
13
|
use App\Models\Devops\ServerConfig;
|
|
14
|
use App\Models\Project\InquiryFilterConfig;
|
14
|
use App\Models\Project\InquiryFilterConfig;
|
|
|
|
15
|
+use App\Models\Project\MinorLanguages;
|
|
15
|
use App\Models\Project\ProjectRenew;
|
16
|
use App\Models\Project\ProjectRenew;
|
|
16
|
use App\Models\Template\Setting;
|
17
|
use App\Models\Template\Setting;
|
|
17
|
use App\Models\User\ProjectMenu;
|
18
|
use App\Models\User\ProjectMenu;
|
|
@@ -150,6 +151,8 @@ class ProjectLogic extends BaseLogic |
|
@@ -150,6 +151,8 @@ class ProjectLogic extends BaseLogic |
|
150
|
$this->saveProjectDeployOptimize($this->param['deploy_optimize']);
|
151
|
$this->saveProjectDeployOptimize($this->param['deploy_optimize']);
|
|
151
|
//保存售后信息
|
152
|
//保存售后信息
|
|
152
|
$this->saveProjectAfter($this->param['project_after']);
|
153
|
$this->saveProjectAfter($this->param['project_after']);
|
|
|
|
154
|
+
|
|
|
|
155
|
+ $this->saveMinorLanguages($this->param['minor_language'] ?? []);
|
|
153
|
//保存询盘过滤配置
|
156
|
//保存询盘过滤配置
|
|
154
|
// $this->param['inquiry_filter_config']['project_id'] = $this->param['id'];
|
157
|
// $this->param['inquiry_filter_config']['project_id'] = $this->param['id'];
|
|
155
|
// $this->saveInquiryFilterConfig($this->param['inquiry_filter_config']);
|
158
|
// $this->saveInquiryFilterConfig($this->param['inquiry_filter_config']);
|
|
@@ -305,6 +308,23 @@ class ProjectLogic extends BaseLogic |
|
@@ -305,6 +308,23 @@ class ProjectLogic extends BaseLogic |
|
305
|
}
|
308
|
}
|
|
306
|
|
309
|
|
|
307
|
/**
|
310
|
/**
|
|
|
|
311
|
+ * @remark :保存小语种配置
|
|
|
|
312
|
+ * @name :saveMinorLanguages
|
|
|
|
313
|
+ * @author :lyh
|
|
|
|
314
|
+ * @method :post
|
|
|
|
315
|
+ * @time :2023/8/30 13:57
|
|
|
|
316
|
+ */
|
|
|
|
317
|
+ protected function saveMinorLanguages($minor_language){
|
|
|
|
318
|
+ //查询数据是否存在
|
|
|
|
319
|
+ $languageModel = new MinorLanguages();
|
|
|
|
320
|
+ $languageModel->del(['project_id'=>$this->param['project_id']]);
|
|
|
|
321
|
+ if(!empty($minor_language)){
|
|
|
|
322
|
+ $languageModel->insert($minor_language);
|
|
|
|
323
|
+ }
|
|
|
|
324
|
+ return $this->success();
|
|
|
|
325
|
+ }
|
|
|
|
326
|
+
|
|
|
|
327
|
+ /**
|
|
308
|
* @remark :创建初始数据
|
328
|
* @remark :创建初始数据
|
|
309
|
* @name :createProjectData
|
329
|
* @name :createProjectData
|
|
310
|
* @author :lyh
|
330
|
* @author :lyh
|