You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
421 B
PHP
19 lines
421 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class ToolsController extends Controller
|
|
{
|
|
//获取当前服务器时间
|
|
public function GetServiceDateTime()
|
|
{
|
|
date_default_timezone_set('PRC');
|
|
$d=date("Y-m-d H:i:s");
|
|
// $d=('2022-12-05 12:12:12');
|
|
return \Yz::Return(true,'获取成功',['datetime'=>$d]);
|
|
}
|
|
}
|