上传协议书
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-09-30 17:32:46
|
||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||
* @LastEditTime: 2024-02-18 11:30:43
|
||||
*/
|
||||
|
||||
namespace fastphp\base;
|
||||
|
||||
@@ -22,7 +14,7 @@ class Controller
|
||||
//初始化属性,实例化对应模型
|
||||
public function __construct($controller,$action)
|
||||
{
|
||||
$data = json_decode(file_get_contents("php://input"),true);
|
||||
$data = empty(json_decode(file_get_contents("php://input"),true))?$_POST:json_decode(file_get_contents("php://input"),true);
|
||||
$getPayload = false;
|
||||
if(isset($data['cookie'])){
|
||||
$cookie = explode('; ',$data['cookie']);
|
||||
|
||||
Reference in New Issue
Block a user