作者 赵彬吉

update

... ... @@ -4,7 +4,7 @@ namespace App\Console\Commands;
use App\Models\Devops\DevopsTaskLog;
use App\Models\Project;
use App\Models\Project\Project;
use Illuminate\Console\Command;
use App\Models\Devops\DevopsTask as DevopsTaskModel;
... ...
... ... @@ -3,8 +3,8 @@
namespace App\Http\Controllers\Bside;
use App\Enums\Common\Code;
use App\Models\Project;
use App\Models\Project as ProjectModel;
use App\Models\Project\Project;
use App\Models\Project\Project as ProjectModel;
use App\Models\User\ProjectMenu as ProjectMenuModel;
use App\Models\User\ProjectRole as ProjectRoleModel;
use App\Models\User\User as UserModel;
... ...
... ... @@ -41,7 +41,8 @@ class ProjectLogic extends BaseLogic
public function save($param){
DB::beginTransaction();
try {
parent::save($param);
$res = parent::save($param);
$param['id'] = $res['id'];
$this->savePayment($param);
$this->saveDeployBuild($param);
$this->saveDeployOptimize($param);
... ...
... ... @@ -112,7 +112,7 @@ class Logic
if (!$info) {
$info = $this->model->with($this->with)->find($id);
if($info){
Cache::put($this->getInfoCacheKey($id), $info);
Cache::put($this->getInfoCacheKey($id), $info, 24 * 3600);
}
}
}else{
... ...
... ... @@ -8,7 +8,7 @@
namespace App\Services;
use App\Models\Project;
use App\Models\Project\Project;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
... ...