stanley-king пре 9 година
родитељ
комит
c2b0b087a1
2 измењених фајлова са 10 додато и 4 уклоњено
  1. 7 4
      mobile/wxnotify.php
  2. 3 0
      request_helper.php

+ 7 - 4
mobile/wxnotify.php

@@ -72,7 +72,10 @@ if(empty($log))
 //$notify = new PayNotifyCallBack();
 //$notify->Handle(false);
 
-foreach($_POST as $key => $val)
-{
-    wxLog::DEBUG($key."=".$val."\r\n");
-}
+$content = request_helper::content();
+wxLog::DEBUG($content ."\r\n");
+
+//foreach($_POST as $key => $val)
+//{
+//    wxLog::DEBUG($key."=".$val."\r\n");
+//}

+ 3 - 0
request_helper.php

@@ -25,6 +25,9 @@ class request_helper
     static public function content_length() {
         return fcgi_getparam('CONTENT_LENGTH');        
     }
+    static public function content() {
+        return fcgi_getcontent();
+    }
     static public function script_name() {
         return fcgi_getparam('SCRIPT_NAME');        
     }