作者 lyh

gx

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