作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -19,6 +19,7 @@ use App\Models\Inquiry\ReInquiryCount; @@ -19,6 +19,7 @@ use App\Models\Inquiry\ReInquiryCount;
19 use App\Models\Inquiry\ReInquiryDetail; 19 use App\Models\Inquiry\ReInquiryDetail;
20 use App\Models\Inquiry\ReInquiryForm; 20 use App\Models\Inquiry\ReInquiryForm;
21 use App\Models\Inquiry\ReInquiryTask; 21 use App\Models\Inquiry\ReInquiryTask;
  22 +use App\Models\Project\Payment;
22 use App\Models\Project\Project; 23 use App\Models\Project\Project;
23 use App\Utils\HttpUtils; 24 use App\Utils\HttpUtils;
24 use App\Utils\LogUtils; 25 use App\Utils\LogUtils;
@@ -101,6 +102,11 @@ class AdsController extends BaseController @@ -101,6 +102,11 @@ class AdsController extends BaseController
101 $item['target'][$k]['is_ad_fee'] = $project->deploy_build->ads_price ? 1 : 0; 102 $item['target'][$k]['is_ad_fee'] = $project->deploy_build->ads_price ? 1 : 0;
102 } 103 }
103 } 104 }
  105 + $item['target'][$k]['mark'] = [];
  106 + !$item['target'][$k]['is_ad_fee'] && $item['target'][$k]['mark'][] = 'green';
  107 + $item['target'][$k]['is_ad_fee'] && $item['target'][$k]['mark'][] = 'black';
  108 + $item['target'][$k]['is_repeat'] && $item['target'][$k]['mark'][] = 'red';
  109 + $item['target'][$k]['price'] > 90000 && $item['target'][$k]['mark'][] = 'blue';
104 } 110 }
105 $item['cost'] = ReInquiryCost::getCostByAdIds($item['ad_id']); 111 $item['cost'] = ReInquiryCost::getCostByAdIds($item['ad_id']);
106 } 112 }
@@ -265,6 +271,7 @@ class AdsController extends BaseController @@ -265,6 +271,7 @@ class AdsController extends BaseController
265 'agent' => Channel::getChannelText($channel['user_id']??0), 271 'agent' => Channel::getChannelText($channel['user_id']??0),
266 'agent_group' => trim(explode('-', Channel::getChannelText($channel['user_id']??0))[0]), 272 'agent_group' => trim(explode('-', Channel::getChannelText($channel['user_id']??0))[0]),
267 'domain' => $domain, 273 'domain' => $domain,
  274 + 'price' => Payment::where('project_id', $domain_info['project_id'])->value('amount') ?: 0
268 ]; 275 ];
269 return $this->response('success', Code::SUCCESS, $data); 276 return $this->response('success', Code::SUCCESS, $data);
270 } 277 }
@@ -279,6 +286,7 @@ class AdsController extends BaseController @@ -279,6 +286,7 @@ class AdsController extends BaseController
279 'agent' => $res['data'], 286 'agent' => $res['data'],
280 'agent_group' => trim(explode('-', explode(',', $res['data'] ?? '')[0])[0]), 287 'agent_group' => trim(explode('-', explode(',', $res['data'] ?? '')[0])[0]),
281 'domain' => $domain, 288 'domain' => $domain,
  289 + 'price' => $res['price'] ?? 0,
282 ]; 290 ];
283 return $this->response('success', Code::SUCCESS, $data); 291 return $this->response('success', Code::SUCCESS, $data);
284 } 292 }
@@ -72,6 +72,7 @@ class ReInquiryTask extends Base @@ -72,6 +72,7 @@ class ReInquiryTask extends Base
72 $item['agent'] = $item['agent'] ?? ''; 72 $item['agent'] = $item['agent'] ?? '';
73 $item['agent_group'] = $item['agent_group'] ?? ''; 73 $item['agent_group'] = $item['agent_group'] ?? '';
74 $item['is_require'] = $item['is_require'] ?? 0; 74 $item['is_require'] = $item['is_require'] ?? 0;
  75 + $item['price'] = $item['price'] ?? 0;
75 } 76 }
76 return $value; 77 return $value;
77 } 78 }