|
...
|
...
|
@@ -54,13 +54,12 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
$this->param['created_at'] = date('Y-m-d H:i:s');
|
|
|
|
$this->param['updated_at'] = date('Y-m-d H:i:s');
|
|
|
|
$xp_id = $this->model->insertGetId($this->param);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($xp_id, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
// @file_put_contents(storage_path('logs/lyh_error.log'), var_export($xp_id, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if(!$xp_id){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
//延时时间为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();
|
|
...
|
...
|
@@ -193,7 +192,24 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
'CLIENT-IP: '.$post_data['ip'],
|
|
|
|
'X-FORWARDED-FOR: '.$post_data['ip']
|
|
|
|
);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($post_data_new).'debug---------------55555', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($post_data_new).'debug', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return http_post($url,$post_data_new,$header);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :更新询盘状态
|
|
|
|
* @name :inquiryEdit
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/14 15:19
|
|
|
|
*/
|
|
|
|
public function inquiryEdit(){
|
|
|
|
$this->param['user_id'] = $this->manager['id'];
|
|
|
|
$this->param['user_name'] = $this->manager['name'];
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|