作者 刘锟

update

... ... @@ -103,7 +103,7 @@ class InquiryForwardLogic extends BaseLogic
$start_at = $now;
}
InquiryRelayDetail::createInquiry($info['id'], $website, $info['country'], $this->param['ip'], $this->param['name'], $this->param['email'], $this->param['phone'], $this->param['message'], $is_v6, $start_at);
InquiryRelayDetail::createInquiry($info['id'], $website, $info['country'], $this->param['ip'], $this->param['name'], $this->param['email'], $this->param['phone'], $this->param['message'], $is_v6, [$url], $start_at);
$num += 1;
}
... ... @@ -185,9 +185,7 @@ class InquiryForwardLogic extends BaseLogic
$route = '';
foreach ($re_route as $vr) {
if ($vr['project_id'] == $vp->id) {
if (substr($vr['route'], -5) != '.html') {
$vr['route'] = $vr['route'] . '/';
}
//TODO:路由是否以 / 结尾
$route = $vr['route'];
break;
}
... ...
... ... @@ -57,10 +57,11 @@ class InquiryRelayDetail extends Model
* @param $phone
* @param $message
* @param $is_v6
* @param $urls
* @param $start_at
* @param int $status
*/
public static function createInquiry($form_id, $website, $country, $ip, $name, $email, $phone, $message, $is_v6, $start_at, $status = self::STATUS_INIT)
public static function createInquiry($form_id, $website, $country, $ip, $name, $email, $phone, $message, $is_v6, $urls, $start_at, $status = self::STATUS_INIT)
{
$self = new self();
$self->form_id = $form_id;
... ... @@ -72,6 +73,7 @@ class InquiryRelayDetail extends Model
$self->phone = $phone;
$self->message = $message;
$self->is_v6 = $is_v6;
$self->urls = json_decode($urls);
$self->start_at = $start_at;
$self->status = $status;
$self->save();
... ...