作者 刘锟

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

... ... @@ -19,6 +19,7 @@ use App\Models\Inquiry\ReInquiryCount;
use App\Models\Inquiry\ReInquiryDetail;
use App\Models\Inquiry\ReInquiryForm;
use App\Models\Inquiry\ReInquiryTask;
use App\Models\Project\Payment;
use App\Models\Project\Project;
use App\Utils\HttpUtils;
use App\Utils\LogUtils;
... ... @@ -101,6 +102,11 @@ class AdsController extends BaseController
$item['target'][$k]['is_ad_fee'] = $project->deploy_build->ads_price ? 1 : 0;
}
}
$item['target'][$k]['mark'] = [];
!$item['target'][$k]['is_ad_fee'] && $item['target'][$k]['mark'][] = 'green';
$item['target'][$k]['is_ad_fee'] && $item['target'][$k]['mark'][] = 'black';
$item['target'][$k]['is_repeat'] && $item['target'][$k]['mark'][] = 'red';
$item['target'][$k]['price'] > 90000 && $item['target'][$k]['mark'][] = 'blue';
}
$item['cost'] = ReInquiryCost::getCostByAdIds($item['ad_id']);
}
... ... @@ -265,6 +271,7 @@ class AdsController extends BaseController
'agent' => Channel::getChannelText($channel['user_id']??0),
'agent_group' => trim(explode('-', Channel::getChannelText($channel['user_id']??0))[0]),
'domain' => $domain,
'price' => Payment::where('project_id', $domain_info['project_id'])->value('amount') ?: 0
];
return $this->response('success', Code::SUCCESS, $data);
}
... ... @@ -279,6 +286,7 @@ class AdsController extends BaseController
'agent' => $res['data'],
'agent_group' => trim(explode('-', explode(',', $res['data'] ?? '')[0])[0]),
'domain' => $domain,
'price' => $res['price'] ?? 0,
];
return $this->response('success', Code::SUCCESS, $data);
}
... ...
... ... @@ -72,6 +72,7 @@ class ReInquiryTask extends Base
$item['agent'] = $item['agent'] ?? '';
$item['agent_group'] = $item['agent_group'] ?? '';
$item['is_require'] = $item['is_require'] ?? 0;
$item['price'] = $item['price'] ?? 0;
}
return $value;
}
... ...