Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
6 个修改的文件
包含
33 行增加
和
18 行删除
| @@ -100,13 +100,13 @@ class DomainInfo extends Command | @@ -100,13 +100,13 @@ class DomainInfo extends Command | ||
| 100 | $v->domain_start_time = $valid_time['start']; | 100 | $v->domain_start_time = $valid_time['start']; |
| 101 | $v->domain_end_time = $valid_time['end']; | 101 | $v->domain_end_time = $valid_time['end']; |
| 102 | $v->save(); | 102 | $v->save(); |
| 103 | - } | ||
| 104 | - } | ||
| 105 | 103 | ||
| 106 | - //域名到期提醒 | ||
| 107 | - if ($v->domain_end_time && $v->domain_end_time < $end_day) { | ||
| 108 | - $is_end = $v->domain_end_time < date('Y-m-d H:i:s') ? 1 : 0; | ||
| 109 | - $this->domainChatMessage($v['project_id'], $v['id'], $v['domain'], $is_end); | 104 | + //域名到期提醒 |
| 105 | + if ($valid_time['end'] < $end_day) { | ||
| 106 | + $is_end = $valid_time['end'] < date('Y-m-d H:i:s') ? 1 : 0; | ||
| 107 | + $this->domainChatMessage($v['project_id'], $v['id'], $v['domain'], $is_end); | ||
| 108 | + } | ||
| 109 | + } | ||
| 110 | } | 110 | } |
| 111 | } else { | 111 | } else { |
| 112 | //除自建站项目外,记录已解析到别的ip的域名 | 112 | //除自建站项目外,记录已解析到别的ip的域名 |
| @@ -141,13 +141,13 @@ class DomainInfo extends Command | @@ -141,13 +141,13 @@ class DomainInfo extends Command | ||
| 141 | $v->domain_start_time = $valid_time['start']; | 141 | $v->domain_start_time = $valid_time['start']; |
| 142 | $v->domain_end_time = $valid_time['end']; | 142 | $v->domain_end_time = $valid_time['end']; |
| 143 | $v->save(); | 143 | $v->save(); |
| 144 | - } | ||
| 145 | - } | ||
| 146 | 144 | ||
| 147 | - //域名到期提醒 | ||
| 148 | - if ($v->domain_end_time && $v->domain_end_time < $end_day) { | ||
| 149 | - $is_end = $v->domain_end_time < date('Y-m-d H:i:s') ? 1 : 0; | ||
| 150 | - $this->domainChatMessage($v['project_id'], $v['id'], $v['domain'], $is_end); | 145 | + //域名到期提醒 |
| 146 | + if ($valid_time['end'] < $end_day) { | ||
| 147 | + $is_end = $valid_time['end'] < date('Y-m-d H:i:s') ? 1 : 0; | ||
| 148 | + $this->domainChatMessage($v['project_id'], $v['id'], $v['domain'], $is_end); | ||
| 149 | + } | ||
| 150 | + } | ||
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | if ($v['amp_status'] == 1) { | 153 | if ($v['amp_status'] == 1) { |
| @@ -412,15 +412,15 @@ class DomainInfo extends Command | @@ -412,15 +412,15 @@ class DomainInfo extends Command | ||
| 412 | ->where('binding_app', ProjectAssociation::ENTERPRISE_WECHAT) | 412 | ->where('binding_app', ProjectAssociation::ENTERPRISE_WECHAT) |
| 413 | ->value('friend_id'); | 413 | ->value('friend_id'); |
| 414 | if ($friend_id) { | 414 | if ($friend_id) { |
| 415 | - $tips = $is_end ? ' 已经到期' : ' 即将到期'; | ||
| 416 | - $message = '【域名到期提醒】' . PHP_EOL . '域名 ' . $domain . $tips . ',请及时处理。'; | 415 | + $tips = $is_end ? ' 已经到期,请及时处理。' : ' 有效期不足一个月,请留意。'; |
| 416 | + $message = '【域名到期提醒】' . PHP_EOL . '域名 ' . $domain . $tips; | ||
| 417 | $param = [ | 417 | $param = [ |
| 418 | 'project_id' => $project_id, | 418 | 'project_id' => $project_id, |
| 419 | 'friend_id' => $friend_id, | 419 | 'friend_id' => $friend_id, |
| 420 | 'type' => MessagePush::TYPE_DOMAIN, | 420 | 'type' => MessagePush::TYPE_DOMAIN, |
| 421 | 'content' => $message, | 421 | 'content' => $message, |
| 422 | 'ref_ids' => $domain_id, | 422 | 'ref_ids' => $domain_id, |
| 423 | - 'send_time' => date('Y-m-d H:i:s'), | 423 | + 'send_time' => date('Y-m-d 14:00:00'), |
| 424 | 'status' => 0, | 424 | 'status' => 0, |
| 425 | ]; | 425 | ]; |
| 426 | //写入一条推送消息 自动消费 | 426 | //写入一条推送消息 自动消费 |
| @@ -354,7 +354,7 @@ class FetchTicketProjects extends Command | @@ -354,7 +354,7 @@ class FetchTicketProjects extends Command | ||
| 354 | // 第一负责人 | 354 | // 第一负责人 |
| 355 | $engineer_id = $assm_id; | 355 | $engineer_id = $assm_id; |
| 356 | if ($project_cate == 3) | 356 | if ($project_cate == 3) |
| 357 | - $is_del = !empty($item["go_online"]); | 357 | + $is_del = empty($item["go_online"]); |
| 358 | else{ | 358 | else{ |
| 359 | // 域途,以服务时间为准 $item['yutu_service_start_time'] 是开始时间 + 有效天数 yutu_planday | 359 | // 域途,以服务时间为准 $item['yutu_service_start_time'] 是开始时间 + 有效天数 yutu_planday |
| 360 | $is_del = !empty($item['yutu_service_start_time']) && !empty($item['yutu_planday']) | 360 | $is_del = !empty($item['yutu_service_start_time']) && !empty($item['yutu_planday']) |
| @@ -66,6 +66,20 @@ class AsideTicketController extends BaseController | @@ -66,6 +66,20 @@ class AsideTicketController extends BaseController | ||
| 66 | ->orWhere('company_name', 'like', '%' . $search . '%'); | 66 | ->orWhere('company_name', 'like', '%' . $search . '%'); |
| 67 | }); | 67 | }); |
| 68 | }); | 68 | }); |
| 69 | + }) | ||
| 70 | + // 根据TicketProject的status字段筛选 | ||
| 71 | + ->when($request->input('project_status') !== null, function ($query) use ($request) { | ||
| 72 | + $projectStatus = $request->input('project_status'); | ||
| 73 | + return $query->whereHas('project', function ($q) use ($projectStatus) { | ||
| 74 | + $q->where('status', $projectStatus); | ||
| 75 | + }); | ||
| 76 | + }) | ||
| 77 | + // 根据TicketProject的project_cate字段筛选 | ||
| 78 | + ->when($request->input('project_cate') !== null, function ($query) use ($request) { | ||
| 79 | + $projectCate = $request->input('project_cate'); | ||
| 80 | + return $query->whereHas('project', function ($q) use ($projectCate) { | ||
| 81 | + $q->where('project_cate', $projectCate); | ||
| 82 | + }); | ||
| 69 | }); | 83 | }); |
| 70 | //TODO::用户部门搜索 | 84 | //TODO::用户部门搜索 |
| 71 | if(isset($this->param['dept_id']) && !empty($this->param['dept_id'])){ | 85 | if(isset($this->param['dept_id']) && !empty($this->param['dept_id'])){ |
| @@ -559,7 +559,7 @@ class ProductController extends BaseController | @@ -559,7 +559,7 @@ class ProductController extends BaseController | ||
| 559 | if(!empty($v['og_image'])){ | 559 | if(!empty($v['og_image'])){ |
| 560 | $v['og_image'] = getImageUrl($v['og_image'] ?? '',$this->user['storage_type'],$this->user['project_location']); | 560 | $v['og_image'] = getImageUrl($v['og_image'] ?? '',$this->user['storage_type'],$this->user['project_location']); |
| 561 | }else{ | 561 | }else{ |
| 562 | - $v['og_image'] = $v['thumb']['url'] ?? ''; | 562 | + $v['og_image'] = ''; |
| 563 | } | 563 | } |
| 564 | if(!empty($v['icon'])){ | 564 | if(!empty($v['icon'])){ |
| 565 | foreach ($v['icon'] as $icon_k => $icon_v){ | 565 | foreach ($v['icon'] as $icon_k => $icon_v){ |
| @@ -33,6 +33,8 @@ class AsideTicketListRequest extends FormRequest | @@ -33,6 +33,8 @@ class AsideTicketListRequest extends FormRequest | ||
| 33 | 'size' => 'nullable|integer', | 33 | 'size' => 'nullable|integer', |
| 34 | 'sort_field' => 'nullable|in:created_at,plan_end_at', | 34 | 'sort_field' => 'nullable|in:created_at,plan_end_at', |
| 35 | 'sort_order' => 'nullable|in:asc,desc', | 35 | 'sort_order' => 'nullable|in:asc,desc', |
| 36 | + 'project_status' => 'nullable|in:1,2,3|integer', | ||
| 37 | + 'project_cate' => 'nullable|in:1,2,3,4|integer', | ||
| 36 | ]; | 38 | ]; |
| 37 | } | 39 | } |
| 38 | } | 40 | } |
| @@ -770,7 +770,6 @@ Route::group([], function () { | @@ -770,7 +770,6 @@ Route::group([], function () { | ||
| 770 | }); | 770 | }); |
| 771 | Route::any('/login', [\App\Http\Controllers\Bside\LoginController::class, 'login'])->name('login'); | 771 | Route::any('/login', [\App\Http\Controllers\Bside\LoginController::class, 'login'])->name('login'); |
| 772 | Route::any('/projectLogin', [\App\Http\Controllers\Bside\LoginController::class, 'projectLogin'])->name('projectLogin'); | 772 | Route::any('/projectLogin', [\App\Http\Controllers\Bside\LoginController::class, 'projectLogin'])->name('projectLogin'); |
| 773 | - Route::any('/ceshi', [\App\Http\Controllers\Bside\TestController::class, 'ceshi'])->name('ceshi'); | ||
| 774 | Route::any('/file_manager_downLoad', [\App\Http\Controllers\Bside\FileManage\FileManageController::class, 'downLoad'])->name('file_manager_downLoad'); | 773 | Route::any('/file_manager_downLoad', [\App\Http\Controllers\Bside\FileManage\FileManageController::class, 'downLoad'])->name('file_manager_downLoad'); |
| 775 | Route::any('/stringTranslation', [\App\Http\Controllers\Bside\LoginController::class, 'stringTranslation'])->name('stringTranslation'); | 774 | Route::any('/stringTranslation', [\App\Http\Controllers\Bside\LoginController::class, 'stringTranslation'])->name('stringTranslation'); |
| 776 | Route::any('/sendLoginSms', [\App\Http\Controllers\Bside\LoginController::class, 'sendLoginSms'])->name('sendLoginSms'); | 775 | Route::any('/sendLoginSms', [\App\Http\Controllers\Bside\LoginController::class, 'sendLoginSms'])->name('sendLoginSms'); |
-
请 注册 或 登录 后发表评论