上传协议书

This commit is contained in:
“wanyongkang”
2024-02-29 15:13:44 +08:00
parent 3d3f588690
commit ef2501c414
5 changed files with 242 additions and 9 deletions

View File

@@ -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']);