正在显示
1 个修改的文件
包含
0 行增加
和
40 行删除
| @@ -611,46 +611,6 @@ class ProjectLogic extends BaseLogic | @@ -611,46 +611,6 @@ class ProjectLogic extends BaseLogic | ||
| 611 | if($type != 0){ | 611 | if($type != 0){ |
| 612 | $this->copyMysql($this->param['project_id'],$project_id); | 612 | $this->copyMysql($this->param['project_id'],$project_id); |
| 613 | } | 613 | } |
| 614 | -<<<<<<< HEAD | ||
| 615 | - //复制付费表 | ||
| 616 | - $paymentModel = new Payment(); | ||
| 617 | - $paymentData = $paymentModel::where('project_id', $this->param['project_id'])->first(); | ||
| 618 | - if(!empty($paymentData)){ | ||
| 619 | - $paymentData = $paymentData->getAttributes(); | ||
| 620 | - unset($paymentData['id']); | ||
| 621 | - $paymentData['project_id'] = $project_id; | ||
| 622 | - $paymentModel->insert($paymentData); | ||
| 623 | - } | ||
| 624 | - //复制售后表 | ||
| 625 | - $afterModel = new After(); | ||
| 626 | - $afterData = $afterModel::where('project_id', $this->param['project_id'])->first(); | ||
| 627 | - if(!empty($afterData)){ | ||
| 628 | - $afterData = $afterData->getAttributes(); | ||
| 629 | - unset($afterData['id']); | ||
| 630 | - $afterData['project_id'] = $project_id; | ||
| 631 | - $afterModel->insert($afterData); | ||
| 632 | - } | ||
| 633 | - //复制用户 | ||
| 634 | - $userModel = new UserModel(); | ||
| 635 | - $userData = $userModel::where('project_id', $this->param['project_id'])->where('role_id',0)->first(); | ||
| 636 | - if(!empty($userData)){ | ||
| 637 | - $userData = $userData->getAttributes(); | ||
| 638 | - unset($userData['id']); | ||
| 639 | - $userData['project_id'] = $project_id; | ||
| 640 | - $userModel->insert($userData); | ||
| 641 | - } | ||
| 642 | - //复制设置的模版 | ||
| 643 | - $settingTemplateModel = new Setting(); | ||
| 644 | - $settingData = $settingTemplateModel::where('project_id', $this->param['project_id'])->first(); | ||
| 645 | - if(!empty($settingData)){ | ||
| 646 | - $settingData = $settingData->getAttributes(); | ||
| 647 | - unset($settingData['id']); | ||
| 648 | - $settingData['project_id'] = $project_id; | ||
| 649 | - $settingTemplateModel->insert($settingData); | ||
| 650 | - } | ||
| 651 | - $this->copyMysql($this->param['project_id'],$project_id); | ||
| 652 | -======= | ||
| 653 | ->>>>>>> e1fa24b098cb6fa80fc919409b2426954c9a660b | ||
| 654 | return $this->success($data); | 614 | return $this->success($data); |
| 655 | } | 615 | } |
| 656 | 616 |
-
请 注册 或 登录 后发表评论