added 完善小程序的支持

This commit is contained in:
zhaoxiang 2017-04-25 15:59:20 +08:00
parent e5fd0086ec
commit c652f7ddbc

View File

@ -61,7 +61,7 @@ class ApiController extends BaseController {
$this->param = $getArr;
break;
}
if ($this->header['USER-AGENT'] == 'wx') {
if ($this->header['AGENT'] == 'wx') {
$data = file_get_contents("php://input");
$data = json_decode($data, true);
$this->param = $data;