From 066fffc3e2d8107df55dd41d4d50dbe5b69886b1 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Sat, 28 Apr 2018 10:22:40 +0800
Subject: [PATCH] 解决上传原始数据接口bug
---
PhalApi/PhalApi/Request.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/PhalApi/PhalApi/Request.php b/PhalApi/PhalApi/Request.php
index ad9ffca..2134c98 100644
--- a/PhalApi/PhalApi/Request.php
+++ b/PhalApi/PhalApi/Request.php
@@ -50,7 +50,7 @@
* @var string ���������������������
*/
protected $actionName;
-
+
/**
* - ���������������������������������������������������������������������������������������������
*
@@ -83,10 +83,9 @@
// ���������������
$this->headers = $this->getAllHeaders();
$this->get = $_GET;
- $this->post = !empty($_POST)?$_POST:file_get_contents('php://input');
+ $this->post = $_POST;
$this->request = $_REQUEST;
$this->cookie = $_COOKIE;
-
@list($this->apiName, $this->actionName) = explode('.', $this->getService());
}
--
Gitblit v1.8.0