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
|
|
|
}
|
2020-04-13 10:14:56 +00:00
|
|
|
public function getDocCommentAction(){
|
|
|
|
$comment = new Models\DocComment();
|
|
|
|
var_dump($this->input);
|
2020-04-13 10:32:38 +00:00
|
|
|
var_dump($comment->DocComments(8));
|
2020-04-13 10:14:56 +00:00
|
|
|
}
|
2020-04-12 13:43:39 +00:00
|
|
|
}
|