作者 lyh

gx

@@ -5,10 +5,8 @@ namespace App\Http\Logic\Aside\Project; @@ -5,10 +5,8 @@ namespace App\Http\Logic\Aside\Project;
5 use App\Enums\Common\Code; 5 use App\Enums\Common\Code;
6 use App\Exceptions\AsideGlobalException; 6 use App\Exceptions\AsideGlobalException;
7 use App\Models\Com\NoticeLog; 7 use App\Models\Com\NoticeLog;
8 -use App\Models\Com\UpdateLog;  
9 use App\Models\Devops\ServerConfig; 8 use App\Models\Devops\ServerConfig;
10 use App\Models\Project\ProjectRenew; 9 use App\Models\Project\ProjectRenew;
11 -use App\Models\Template\BSettingTemplate;  
12 use App\Models\Template\Setting; 10 use App\Models\Template\Setting;
13 use App\Models\User\ProjectMenu; 11 use App\Models\User\ProjectMenu;
14 use App\Models\User\ProjectRole; 12 use App\Models\User\ProjectRole;
@@ -16,7 +14,6 @@ use App\Services\SyncService; @@ -16,7 +14,6 @@ use App\Services\SyncService;
16 use App\Utils\HttpUtils; 14 use App\Utils\HttpUtils;
17 use App\Utils\LogUtils; 15 use App\Utils\LogUtils;
18 use GuzzleHttp\Exception\GuzzleException; 16 use GuzzleHttp\Exception\GuzzleException;
19 -use Illuminate\Support\Arr as SupArr;  
20 use App\Helper\Arr; 17 use App\Helper\Arr;
21 use App\Helper\Common; 18 use App\Helper\Common;
22 use App\Helper\FormGlobalsoApi; 19 use App\Helper\FormGlobalsoApi;
@@ -38,9 +35,7 @@ use Hashids\Hashids; @@ -38,9 +35,7 @@ use Hashids\Hashids;
38 use App\Models\User\User as UserModel; 35 use App\Models\User\User as UserModel;
39 use Illuminate\Support\Facades\DB; 36 use Illuminate\Support\Facades\DB;
40 use Illuminate\Support\Facades\Http; 37 use Illuminate\Support\Facades\Http;
41 -use Illuminate\Support\Facades\Log;  
42 use Illuminate\Support\Facades\Schema; 38 use Illuminate\Support\Facades\Schema;
43 -use Illuminate\Support\Str;  
44 use App\Http\Logic\Aside\Domain\DomainInfoLogic; 39 use App\Http\Logic\Aside\Domain\DomainInfoLogic;
45 40
46 /** 41 /**
@@ -39,6 +39,10 @@ class BTemplateLogLogic extends BaseLogic @@ -39,6 +39,10 @@ class BTemplateLogLogic extends BaseLogic
39 $this->fail('error'); 39 $this->fail('error');
40 } 40 }
41 $bTemplateModel = new BTemplate(); 41 $bTemplateModel = new BTemplate();
  42 + if($info['template_id'] == 0){//定制项目
  43 + $bTemplateModel->edit(['html'=>$info['text']],['template_id'=>$info['template_id'],'source'=>$info['source'],'source_id'=>$info['source_id']]);
  44 + return $this->success();
  45 + }
42 //演示项目,不允许其他号码编辑 46 //演示项目,不允许其他号码编辑
43 if(($this->user['project_id'] == 1) && (!in_array($this->user['mobile'],$bTemplateModel->mobile)) && ($info['source'] == 1)){ 47 if(($this->user['project_id'] == 1) && (!in_array($this->user['mobile'],$bTemplateModel->mobile)) && ($info['source'] == 1)){
44 $this->fail('演示项目仅支持演示功能,无法更改首页'); 48 $this->fail('演示项目仅支持演示功能,无法更改首页');