正在显示
4 个修改的文件
包含
49 行增加
和
3 行删除
| @@ -114,14 +114,12 @@ class SyncProject extends Command | @@ -114,14 +114,12 @@ class SyncProject extends Command | ||
| 114 | 'contract' => json_encode($param['files']), | 114 | 'contract' => json_encode($param['files']), |
| 115 | 'bill' => json_encode($param['images']), | 115 | 'bill' => json_encode($param['images']), |
| 116 | ]; | 116 | ]; |
| 117 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); | ||
| 118 | - | 117 | +// @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); |
| 119 | $renewModel = new ProjectRenew(); | 118 | $renewModel = new ProjectRenew(); |
| 120 | $rs = $renewModel->add($data); | 119 | $rs = $renewModel->add($data); |
| 121 | if($rs === false){ | 120 | if($rs === false){ |
| 122 | errorLog('项目续费单同步失败'); | 121 | errorLog('项目续费单同步失败'); |
| 123 | } | 122 | } |
| 124 | - | ||
| 125 | return true; | 123 | return true; |
| 126 | } | 124 | } |
| 127 | 125 |
| @@ -12,6 +12,7 @@ namespace App\Http\Controllers\Aside\Project; | @@ -12,6 +12,7 @@ namespace App\Http\Controllers\Aside\Project; | ||
| 12 | use App\Enums\Common\Code; | 12 | use App\Enums\Common\Code; |
| 13 | use App\Http\Controllers\Aside\BaseController; | 13 | use App\Http\Controllers\Aside\BaseController; |
| 14 | use App\Http\Logic\Aside\Project\ProjectLogic; | 14 | use App\Http\Logic\Aside\Project\ProjectLogic; |
| 15 | +use App\Http\Logic\Aside\Project\RenewLogic; | ||
| 15 | use App\Models\HomeCount\Count; | 16 | use App\Models\HomeCount\Count; |
| 16 | use App\Models\Project\DeployOptimize; | 17 | use App\Models\Project\DeployOptimize; |
| 17 | use Carbon\Carbon; | 18 | use Carbon\Carbon; |
| @@ -48,4 +49,15 @@ class RenewProjectController extends BaseController | @@ -48,4 +49,15 @@ class RenewProjectController extends BaseController | ||
| 48 | $this->response('success',Code::SUCCESS,$data); | 49 | $this->response('success',Code::SUCCESS,$data); |
| 49 | } | 50 | } |
| 50 | 51 | ||
| 52 | + /** | ||
| 53 | + * @remark :续费记录单 | ||
| 54 | + * @name :renewLists | ||
| 55 | + * @author :lyh | ||
| 56 | + * @method :post | ||
| 57 | + * @time :2023/8/11 17:28 | ||
| 58 | + */ | ||
| 59 | + public function renewLists(RenewLogic $logic){ | ||
| 60 | + $lists = $logic->renewListsLog($this->map,$this->page,$this->row,$this->order); | ||
| 61 | + $this->response('success',Code::SUCCESS,$lists); | ||
| 62 | + } | ||
| 51 | } | 63 | } |
app/Http/Logic/Aside/Project/RenewLogic.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :RenewLogic.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2023/8/11 17:29 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Http\Logic\Aside\Project; | ||
| 11 | + | ||
| 12 | +use App\Http\Logic\Aside\BaseLogic; | ||
| 13 | +use App\Models\Project\Project; | ||
| 14 | +use App\Models\Project\ProjectRenew; | ||
| 15 | + | ||
| 16 | +class RenewLogic extends BaseLogic | ||
| 17 | +{ | ||
| 18 | + public function __construct() | ||
| 19 | + { | ||
| 20 | + parent::__construct(); | ||
| 21 | + $this->model = new ProjectRenew(); | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * @remark :续费单记录列表 | ||
| 26 | + * @name :renewLog | ||
| 27 | + * @author :lyh | ||
| 28 | + * @method :post | ||
| 29 | + * @time :2023/8/11 17:30 | ||
| 30 | + */ | ||
| 31 | + public function renewListsLog($map,$page,$row,$order,$field = ['*']){ | ||
| 32 | + $lists = $this->model->lists($map,$page,$row,$order,$field); | ||
| 33 | + return $this->success($lists); | ||
| 34 | + } | ||
| 35 | +} |
| @@ -153,6 +153,7 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -153,6 +153,7 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 153 | //续费 | 153 | //续费 |
| 154 | Route::prefix('renew')->group(function () { | 154 | Route::prefix('renew')->group(function () { |
| 155 | Route::any('/', [Aside\Project\RenewProjectController::class, 'lists'])->name('admin.renew'); | 155 | Route::any('/', [Aside\Project\RenewProjectController::class, 'lists'])->name('admin.renew'); |
| 156 | + Route::any('/renew', [Aside\Project\RenewProjectController::class, 'renewLists'])->name('admin.renewLists'); | ||
| 156 | }); | 157 | }); |
| 157 | //工单管理 | 158 | //工单管理 |
| 158 | Route::prefix('task')->group(function () { | 159 | Route::prefix('task')->group(function () { |
-
请 注册 或 登录 后发表评论