diff --git a/application/controllers/information.php b/application/controllers/information.php index b7c1e072..e1a4c008 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1273,7 +1273,9 @@ class Information extends CI_Controller if (empty($meta_product_code)) { $addthis_widget = $this->load->view($template_path . '-add-this', false, true); $template = str_replace('', $addthis_widget, $template); - } else { + $template = str_replace('?product_code=', '', $template); + } else { + $template = str_replace('?product_code=', '?product_code='.$meta_product_code, $template); $inquiry_form_template = $this->load->view( $template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code, 'information' => $information), diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index bd97d39c..65c270f8 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -73,7 +73,7 @@ class Index extends CI_Controller and request_uri NOT like '/ajax/getads/' and request_uri NOT like '/public/template/footer.html' and request_uri NOT like '/public/%' - and remote_addr='$ip' + and (remote_addr='$ip' OR http_x_forwarded_for like '%$ip%') ";//ORDER BY time_local ASC 时间精度不够,会导致相同排序错误,只能用系统默认排序 /* remote_addr :'23.99.99.139' @@ -83,6 +83,7 @@ AND NOT request_uri :".png" AND NOT request_uri :".gif" AND NOT request_uri :"guide-use.php" AND NOT request_uri : "/index.php" +and remote_addr='$ip' */ $from = time()-604800;//往前 604800(7天), 1296000(15天) $to = time(); diff --git a/application/views/mobile_first/ah-gp-form.php b/application/views/mobile_first/ah-gp-form.php index 817485f2..53430ea2 100644 --- a/application/views/mobile_first/ah-gp-form.php +++ b/application/views/mobile_first/ah-gp-form.php @@ -42,554 +42,267 @@