api/App/Controllers/DocComment.php

23 lines
469 B
PHP
Raw Normal View History

2020-04-12 13:43:39 +00:00
<?php
namespace App\Controllers;
use App\Models;
use Core\Controller;
use Core\View;
use Parsedown;
use App\Config;
class DocComment extends Controller
{
public function insertAction(){
2020-04-13 04:48:18 +00:00
$comment = new Models\DocComment();
2020-04-12 13:43:39 +00:00
date_default_timezone_set("Asia/Shanghai");
2020-04-13 04:48:18 +00:00
var_dump($this->input);
2020-04-12 13:43:39 +00:00
$userdate = date("Y-m-d H:i:s",time());
2020-04-13 04:48:18 +00:00
$comment->InsertObject($this->input);
//$this->JsonResp(200,$all,"OK");
2020-04-12 13:43:39 +00:00
}
}