作者 lyh

gx

... ... @@ -114,14 +114,12 @@ class SyncProject extends Command
'contract' => json_encode($param['files']),
'bill' => json_encode($param['images']),
];
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
// @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
$renewModel = new ProjectRenew();
$rs = $renewModel->add($data);
if($rs === false){
errorLog('项目续费单同步失败');
}
return true;
}
... ...
... ... @@ -12,6 +12,7 @@ namespace App\Http\Controllers\Aside\Project;
use App\Enums\Common\Code;
use App\Http\Controllers\Aside\BaseController;
use App\Http\Logic\Aside\Project\ProjectLogic;
use App\Http\Logic\Aside\Project\RenewLogic;
use App\Models\HomeCount\Count;
use App\Models\Project\DeployOptimize;
use Carbon\Carbon;
... ... @@ -48,4 +49,15 @@ class RenewProjectController extends BaseController
$this->response('success',Code::SUCCESS,$data);
}
/**
* @remark :续费记录单
* @name :renewLists
* @author :lyh
* @method :post
* @time :2023/8/11 17:28
*/
public function renewLists(RenewLogic $logic){
$lists = $logic->renewListsLog($this->map,$this->page,$this->row,$this->order);
$this->response('success',Code::SUCCESS,$lists);
}
}
... ...
<?php
/**
* @remark :
* @name :RenewLogic.php
* @author :lyh
* @method :post
* @time :2023/8/11 17:29
*/
namespace App\Http\Logic\Aside\Project;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Project\Project;
use App\Models\Project\ProjectRenew;
class RenewLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->model = new ProjectRenew();
}
/**
* @remark :续费单记录列表
* @name :renewLog
* @author :lyh
* @method :post
* @time :2023/8/11 17:30
*/
public function renewListsLog($map,$page,$row,$order,$field = ['*']){
$lists = $this->model->lists($map,$page,$row,$order,$field);
return $this->success($lists);
}
}
... ...
... ... @@ -153,6 +153,7 @@ Route::middleware(['aloginauth'])->group(function () {
//续费
Route::prefix('renew')->group(function () {
Route::any('/', [Aside\Project\RenewProjectController::class, 'lists'])->name('admin.renew');
Route::any('/renew', [Aside\Project\RenewProjectController::class, 'renewLists'])->name('admin.renewLists');
});
//工单管理
Route::prefix('task')->group(function () {
... ...