From 12690729bc3f0a3e920051e11d2f5522a15f44bc Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 14 Jun 2018 09:17:44 +0800
Subject: [PATCH] 男声和女声分开

---
 Library/MyRequest.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Library/MyRequest.php b/Library/MyRequest.php
index 4feb330..92e95f8 100644
--- a/Library/MyRequest.php
+++ b/Library/MyRequest.php
@@ -5,8 +5,9 @@
       parent::__construct($data);
 
       // json������
-      $this->post = file_get_contents('php://input');    
-      
+      if(!$_POST)
+        $this->post = json_decode(file_get_contents('php://input'),true);    
+
       // ������xml������
       //$this->post = simplexml_load_string (
       //    file_get_contents('php://input'),

--
Gitblit v1.8.0