正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -72,7 +72,7 @@ class AdsController extends BaseController | @@ -72,7 +72,7 @@ class AdsController extends BaseController | ||
| 72 | if($item['fob_pro']){ | 72 | if($item['fob_pro']){ |
| 73 | $fb_projects = ReInquiryCount::getFobProjects(); | 73 | $fb_projects = ReInquiryCount::getFobProjects(); |
| 74 | foreach ($item['fob_pro'] as $k => $fob_pro){ | 74 | foreach ($item['fob_pro'] as $k => $fob_pro){ |
| 75 | - $repeat = ReInquiryTask::where('fob_pro', 'like', '%'.$fob_pro.'%')->where('id', '<>', $item['id'])->first(); | 75 | + $repeat = ReInquiryTask::where('fob_pro', 'like', '%"'.$fob_pro.'"%')->where('id', '<>', $item['id'])->first(); |
| 76 | $fob_info = collect($fb_projects)->where('postid', $fob_pro)->first(); | 76 | $fob_info = collect($fb_projects)->where('postid', $fob_pro)->first(); |
| 77 | $item['fob_pro_list'][$k] = [ | 77 | $item['fob_pro_list'][$k] = [ |
| 78 | 'is_repeat' => $repeat ? 1 : 0, | 78 | 'is_repeat' => $repeat ? 1 : 0, |
| @@ -82,7 +82,7 @@ class AdsController extends BaseController | @@ -82,7 +82,7 @@ class AdsController extends BaseController | ||
| 82 | } | 82 | } |
| 83 | if($item['shop_site']) { | 83 | if($item['shop_site']) { |
| 84 | foreach ($item['shop_site'] as $k => $site) { | 84 | foreach ($item['shop_site'] as $k => $site) { |
| 85 | - $repeat = ReInquiryTask::where('target', 'like', '%' . $site . '%')->where('id', '<>', $item['id'])->first(); | 85 | + $repeat = ReInquiryTask::where('target', 'like', '%"' . $site . '"%')->where('id', '<>', $item['id'])->first(); |
| 86 | $item['shop_site_list'][$k] = [ | 86 | $item['shop_site_list'][$k] = [ |
| 87 | 'is_repeat' => $repeat ? 1 : 0, | 87 | 'is_repeat' => $repeat ? 1 : 0, |
| 88 | 'url' => $site, | 88 | 'url' => $site, |
| @@ -90,7 +90,7 @@ class AdsController extends BaseController | @@ -90,7 +90,7 @@ class AdsController extends BaseController | ||
| 90 | } | 90 | } |
| 91 | } | 91 | } |
| 92 | foreach ($item['target'] as $k=>$target){ | 92 | foreach ($item['target'] as $k=>$target){ |
| 93 | - $repeat = ReInquiryTask::where('target', 'like', '%'.$target['url'].'%')->where('id', '<>', $item['id'])->first(); | 93 | + $repeat = ReInquiryTask::where('target', 'like', '%"'.$target['url'].'"%')->where('id', '<>', $item['id'])->first(); |
| 94 | $item['target'][$k]['is_repeat'] = $repeat ? 1 : 0; | 94 | $item['target'][$k]['is_repeat'] = $repeat ? 1 : 0; |
| 95 | } | 95 | } |
| 96 | $item['cost'] = ReInquiryCost::getCostByAdIds($item['ad_id']); | 96 | $item['cost'] = ReInquiryCost::getCostByAdIds($item['ad_id']); |
-
请 注册 或 登录 后发表评论