Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
6 个修改的文件
包含
20 行增加
和
4 行删除
| @@ -172,12 +172,13 @@ class NoticeController extends BaseController | @@ -172,12 +172,13 @@ class NoticeController extends BaseController | ||
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | /** | 174 | /** |
| 175 | + * 询盘通知企业微信群提示hook | ||
| 175 | * 升级项目询盘hook | 176 | * 升级项目询盘hook |
| 176 | * 通知发送群提醒 | 177 | * 通知发送群提醒 |
| 177 | * @param Request $request | 178 | * @param Request $request |
| 178 | * @return false|string | 179 | * @return false|string |
| 179 | */ | 180 | */ |
| 180 | - public function upgradeProjectInquiryHook(Request $request) | 181 | + public function inquiryNoticeHook(Request $request) |
| 181 | { | 182 | { |
| 182 | $domain = trim($request->input('domain')); | 183 | $domain = trim($request->input('domain')); |
| 183 | $country = trim($request->input('country')); | 184 | $country = trim($request->input('country')); |
| @@ -343,9 +343,10 @@ class PrivateController extends BaseController | @@ -343,9 +343,10 @@ class PrivateController extends BaseController | ||
| 343 | public function upgradeProjectDomain() | 343 | public function upgradeProjectDomain() |
| 344 | { | 344 | { |
| 345 | $domain = Project::leftJoin('gl_domain_info', 'gl_project.id', '=', 'gl_domain_info.project_id') | 345 | $domain = Project::leftJoin('gl_domain_info', 'gl_project.id', '=', 'gl_domain_info.project_id') |
| 346 | - ->where(['gl_project.is_upgrade' => Project::IS_UPGRADE_TRUE, 'gl_project.delete_status' => Project::IS_DEL_FALSE, '']) | 346 | + ->where(['gl_project.is_upgrade' => Project::IS_UPGRADE_TRUE, 'gl_project.delete_status' => Project::IS_DEL_FALSE]) |
| 347 | ->pluck('domain') | 347 | ->pluck('domain') |
| 348 | ->toArray(); | 348 | ->toArray(); |
| 349 | - return $this->success($domain); | 349 | + $list = array_filter(array_unique($domain)); |
| 350 | + return $this->success($list); | ||
| 350 | } | 351 | } |
| 351 | } | 352 | } |
| @@ -39,6 +39,12 @@ class AllProjectController extends BaseController | @@ -39,6 +39,12 @@ class AllProjectController extends BaseController | ||
| 39 | if(isset($this->map['test_domain']) && !empty($this->map['test_domain'])){ | 39 | if(isset($this->map['test_domain']) && !empty($this->map['test_domain'])){ |
| 40 | $this->map['test_domain'] = ['like','%'.$this->map['test_domain'].'%']; | 40 | $this->map['test_domain'] = ['like','%'.$this->map['test_domain'].'%']; |
| 41 | } | 41 | } |
| 42 | + if(isset($this->map['title']) && !empty($this->map['title'])){ | ||
| 43 | + $this->map['title'] = ['like','%'.$this->map['title'].'%']; | ||
| 44 | + } | ||
| 45 | + if(isset($this->map['company']) && !empty($this->map['company'])){ | ||
| 46 | + $this->map['company'] = ['like','%'.$this->map['company'].'%']; | ||
| 47 | + } | ||
| 42 | $data = $allProject->lists($this->map,$this->page,$this->row); | 48 | $data = $allProject->lists($this->map,$this->page,$this->row); |
| 43 | $this->response('success',Code::SUCCESS,$data); | 49 | $this->response('success',Code::SUCCESS,$data); |
| 44 | } | 50 | } |
| @@ -79,6 +79,9 @@ class KeywordController extends BaseController | @@ -79,6 +79,9 @@ class KeywordController extends BaseController | ||
| 79 | if(!empty($map['keyword_title'])){ | 79 | if(!empty($map['keyword_title'])){ |
| 80 | $map['keyword_title'] = ['like','%'.$map['keyword_title'].'%']; | 80 | $map['keyword_title'] = ['like','%'.$map['keyword_title'].'%']; |
| 81 | } | 81 | } |
| 82 | + if(empty($map['is_video_keyword'])){ | ||
| 83 | + unset($map['is_video_keyword']); | ||
| 84 | + } | ||
| 82 | $map['route'] = ['<>','']; | 85 | $map['route'] = ['<>','']; |
| 83 | $map['project_id'] = $this->user['project_id']; | 86 | $map['project_id'] = $this->user['project_id']; |
| 84 | $map['deleted_at'] = null; | 87 | $map['deleted_at'] = null; |
| @@ -277,6 +277,7 @@ class UserLoginLogic | @@ -277,6 +277,7 @@ class UserLoginLogic | ||
| 277 | $info['service_duration'] = $project['deploy_build']['service_duration'] ?? 0; | 277 | $info['service_duration'] = $project['deploy_build']['service_duration'] ?? 0; |
| 278 | $info['is_comment'] = $project['deploy_build']['is_comment'] ?? 0; | 278 | $info['is_comment'] = $project['deploy_build']['is_comment'] ?? 0; |
| 279 | $info['remain_day'] = $project['remain_day'] ?? 0; | 279 | $info['remain_day'] = $project['remain_day'] ?? 0; |
| 280 | + $info['project_created_at'] = $project['created_at']; | ||
| 280 | $info['type'] = $project['type'] ?? 1; | 281 | $info['type'] = $project['type'] ?? 1; |
| 281 | if($info['is_customized'] == 1){ | 282 | if($info['is_customized'] == 1){ |
| 282 | $info['is_visualization'] = json_decode($project['is_visualization']); | 283 | $info['is_visualization'] = json_decode($project['is_visualization']); |
| @@ -292,6 +293,7 @@ class UserLoginLogic | @@ -292,6 +293,7 @@ class UserLoginLogic | ||
| 292 | $is_amp = $amp_info ? $amp_info['amp_status'] : 0; | 293 | $is_amp = $amp_info ? $amp_info['amp_status'] : 0; |
| 293 | } | 294 | } |
| 294 | $info['is_amp'] = $is_amp; | 295 | $info['is_amp'] = $is_amp; |
| 296 | + $info['is_three_code'] = $project['is_three_code'] ?? 0; | ||
| 295 | return $info; | 297 | return $info; |
| 296 | } | 298 | } |
| 297 | 299 |
| @@ -41,7 +41,10 @@ Route::any('getAutoToken', [\App\Http\Controllers\Api\PrivateController::class, | @@ -41,7 +41,10 @@ Route::any('getAutoToken', [\App\Http\Controllers\Api\PrivateController::class, | ||
| 41 | Route::any('valid_product_route', [\App\Http\Controllers\Api\PrivateController::class, 'getProductRoute'])->name('api.valid_product_route'); | 41 | Route::any('valid_product_route', [\App\Http\Controllers\Api\PrivateController::class, 'getProductRoute'])->name('api.valid_product_route'); |
| 42 | // 6.0项目新增有效链接 - 提交Google | 42 | // 6.0项目新增有效链接 - 提交Google |
| 43 | Route::any('project_new_url', [\App\Http\Controllers\Api\PrivateController::class, 'projectNewUrl'])->name('api.project_new_url'); | 43 | Route::any('project_new_url', [\App\Http\Controllers\Api\PrivateController::class, 'projectNewUrl'])->name('api.project_new_url'); |
| 44 | - | 44 | +// 6.0升级项目域名列表 |
| 45 | +Route::any('upgrade_project_domain', [\App\Http\Controllers\Api\PrivateController::class, 'upgradeProjectDomain'])->name('api.upgrade_project_domain'); | ||
| 46 | +// 询盘通知微信提示hook | ||
| 47 | +Route::any('inquiry_notice_hook', [\App\Http\Controllers\Api\NoticeController::class, 'inquiryNoticeHook'])->name('api.inquiry_notice_hook'); | ||
| 45 | 48 | ||
| 46 | // --------------------- 站群服务 ------------------------------------------ | 49 | // --------------------- 站群服务 ------------------------------------------ |
| 47 | // 获取项目信息 | 50 | // 获取项目信息 |
-
请 注册 或 登录 后发表评论