HighSpeaker/.history/app/controller/DnsController_20221217222442
2022-12-18 18:14:03 +08:00

30 lines
559 B
Plaintext

<?php
namespace app\controller;
class DnsController
{
public function PTR(Request $request)
{
$send['type']='PTR';
$send['detail']='dns.laysense.com';
$send['ttl']=30;
$send['id']=$data->id;
$send['query']=$data->query;
$return=json_encode($send)
return $return;
}
public function view(Request $request)
{
return view('index/view', ['name' => 'webman']);
}
public function json(Request $request)
{
return json(['code' => 0, 'msg' => 'ok']);
}
}