|
@@ -1,4 +1,5 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
+
|
|
|
namespace app\index\controller;
|
|
namespace app\index\controller;
|
|
|
|
|
|
|
|
use think\Controller;
|
|
use think\Controller;
|
|
@@ -14,7 +15,7 @@ class Index extends Controller
|
|
|
public function chat()
|
|
public function chat()
|
|
|
{
|
|
{
|
|
|
// 跳转到移动端
|
|
// 跳转到移动端
|
|
|
- if(request()->isMobile()){
|
|
|
|
|
|
|
+ if (request()->isMobile()) {
|
|
|
$param = http_build_query([
|
|
$param = http_build_query([
|
|
|
'id' => input('param.id'),
|
|
'id' => input('param.id'),
|
|
|
'name' => input('param.name'),
|
|
'name' => input('param.name'),
|
|
@@ -48,4 +49,11 @@ class Index extends Controller
|
|
|
|
|
|
|
|
return $this->fetch();
|
|
return $this->fetch();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public function systime()
|
|
|
|
|
+ {
|
|
|
|
|
+ $time = time();
|
|
|
|
|
+ return json(['code' => 1, 'data' => ['time' => $time], 'msg' => '成功']);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|