|
...
|
...
|
@@ -58,6 +58,7 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
}
|
|
|
|
//延时时间为0时,询盘转发
|
|
|
|
if($this->param['delay'] == 0){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('debug---------------1', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$this->forwardTime($xp_id);
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
...
|
...
|
@@ -151,6 +152,7 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
$arr_url = explode(',',$param['forward_url']);
|
|
|
|
foreach ($arr_url as $v){
|
|
|
|
$data['url'] = $v;
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($data).'debug---------------33333333333', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$this->inquiryForward($data);
|
|
|
|
}
|
|
|
|
//更新数据库,修改状态为已转发
|
|
...
|
...
|
@@ -185,6 +187,8 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
$post_data_new['submit_time'] = date('Y-m-d H:i:s',time()+20);
|
|
|
|
$token = md5($post_data_new['refer'].$post_data_new['name'].$post_data_new['ip'].date("Y-m-d",time()));
|
|
|
|
$post_data_new['token'] = $token;
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($post_data_new).'debug---------------55555', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
|
|
|
|
return http_post($url,$post_data_new);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|