stanley-king 9 роки тому
батько
коміт
8e36d7be23
2 змінених файлів з 4 додано та 2 видалено
  1. 1 1
      mobile/wxnotify.php
  2. 3 1
      request_helper.php

+ 1 - 1
mobile/wxnotify.php

@@ -49,7 +49,7 @@ if(empty($log)) {
 
 try
 {
-    $content = request_helper::content();
+    $content = $_POST['original_querystring'];//request_helper::content();
     wxLog::DEBUG("content = {$content}");
     $result = WxPayResults::Init($content);
     $ret_wx = array();

+ 3 - 1
request_helper.php

@@ -208,7 +208,6 @@ class request_helper
                 unset($_SERVER[$field]);
                 $param = fcgi_getparam($field);
                 $_SERVER[$field] = $param;
-                //Log::record("{$field} : {$_SERVER[$field]}", Log::INFO);
             } catch(Exception $e){
                 Log::record($e->getTraceAsString(),Log::ERR);
             }
@@ -238,6 +237,9 @@ class request_helper
 
         if ($squery == '') {
             return;
+        } else {
+            $_GET['original_querystring'] = $squery;
+            $_POST['original_querystring'] = $squery;
         }
 
         $params = preg_split('/&|=/', $squery);