作者 赵彬吉

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

... ... @@ -3,6 +3,7 @@
namespace App\Http\Logic\Aside\Project;
use App\Models\Devops\ServerConfig;
use App\Models\Project\ProjectRenew;
use App\Models\User\ProjectMenu;
use App\Models\User\ProjectRole;
use Illuminate\Support\Arr as SupArr;
... ... @@ -257,9 +258,30 @@ class ProjectLogic extends BaseLogic
* @time :2023/9/12 11:20
*/
public function setTypeSevenEdit($param){
//TODO::删除项目并添加到续费单
//删除原始项目
$this->edit(['delete_status' => 1], ['id' => $param['id']]);
return true;
//添加到续费单
$data = [
'title' => '【续费单】' . $param['title'],
'company' => $param['company'],
'lead_name' => $param['lead_name'],
'mobile' => $param['mobile'],
'qq' => $param['qq'],
'channel' => json_encode($param['channel']),
'requirement' => $param['requirement'],
'cooperate_date' => $param['cooperate_date'],
'service_duration' => $param['deploy_build']['service_duration'],
'plan' => $param['deploy_build']['plan'],
// 'api_no' => $param['id'], //改手动填
'amount' => $param['payment']['amount'],
'contract' => json_encode($param['payment']['files']),
'bill' => json_encode($param['payment']['images']),
];
$renewModel = new ProjectRenew();
$renewModel->add($data);
return $this->success();
}
/**
... ...
... ... @@ -60,7 +60,8 @@ class Project extends Base
3 => '已完成-建站用户',
4 => '推广续网站',
5 => '未续费项目',
6 => '特殊推广项目'
6 => '特殊推广项目',
7 => '提单错误转续费'
];
}
... ...