作者 lyh

gx

@@ -189,7 +189,11 @@ class InquiryInfoLogic extends BaseLogic @@ -189,7 +189,11 @@ class InquiryInfoLogic extends BaseLogic
189 $post_data_new['submit_time'] = date('Y-m-d H:i:s',time()+20); 189 $post_data_new['submit_time'] = date('Y-m-d H:i:s',time()+20);
190 $token = md5($post_data_new['refer'].$post_data_new['name'].$post_data_new['ip'].date("Y-m-d",time())); 190 $token = md5($post_data_new['refer'].$post_data_new['name'].$post_data_new['ip'].date("Y-m-d",time()));
191 $post_data_new['token'] = $token; 191 $post_data_new['token'] = $token;
  192 + $header = array(
  193 + 'CLIENT-IP: '.$post_data['ip'],
  194 + 'X-FORWARDED-FOR: '.$post_data['ip']
  195 + );
192 @file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($post_data_new).'debug---------------55555', true) . PHP_EOL, FILE_APPEND); 196 @file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($post_data_new).'debug---------------55555', true) . PHP_EOL, FILE_APPEND);
193 - return http_post($url,$post_data_new); 197 + return http_post($url,$post_data_new,$header);
194 } 198 }
195 } 199 }