dd/app/Http/Controllers/SakaiController.php
2025-05-10 13:33:39 +08:00

121 lines
3.4 KiB
PHP
Executable File

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\ArticleList;
use App\Services\Time;
use voku\helper\AntiXSS;
use App\Models\Tags;
use App\Services\TomTool\Http;
class SakaiController
{
// public function hook()
// {
//
// }
public function test1()
{
// tomd(123, 1);
@$k = $_GET["k"];
@$s = $_GET["s"];
if ($k !== "wocaonide") {
exit("?");
}
$s = '/'.$s;
//test
// $s = "\/AticleSet__1115zz__sale_rate 1118.118";
// $s = "\/git#LastTime 1";
$s = "/hook#set site:cfn";
$s = "/dove#now";
$s = "/dove#set vcf";
$s = "/dove#unsetAll";
$s = "/doveSite#del vcf";
$s = "/doveSite#option__cfn__www 123";
$s = "/doveSite#limit 10";
$s = "/doveSite#like__memo c";
$s = "/dove#tool#list";
$s = "/dove#tool#exec html/client";
$s = "/dove#option#list";
$s = "/dove#option#add zzzzxxx";
$s = "/dove#option#option__test xxx111";
$s = "/dove#option#del test";
$s = "/dove#option#like__key xx";
$s = "/dove#option#like__value cc";
$s = "/dove#option#find jichang_ww";
$s = "/dove#option#add freenode_title";
$s = "/dove#tool#sql";
$s = "/dove#database#select select * from article_list limit 1";
$s = "/dove#database#sql ALTER TABLE test ADD COLUMN age INT";
$s = "/dove#toolOld#list";
$s = "/dove#toolOld#exec html/article";
$s = "/dove#test#FreenodeCrawUrl";
$s = "/dove#tool#freenode_up";
$s = "/dove#tool#toptag_html";
$s = "/dove#tool#like_auto";
$s = "/dove#tool#Article_freenode_up_limit 10 3";
$s = "/note#add skljdfkljsdkljf";
$s = "/note#now";
$s = "/note#keep 2";
$s = "/note#main";
// $s = "/note#set__1 告诉你啊,你就是个几把";
// $s = "/note#memo__1 股您吗的";
// $s = "/note#icon";
$s = "/note#add__now 脱裤子 112";
// $s = "/note_option#add__ttt1 zzz";
// $s = "/note_option#del ttt";
$s = "/note_option#list";
$s = "/note_option#find icon_type1";
$s = "/note_option#set__icon_type 2";
$s = "/note#main";
$oHttp = new Http();
$oHttp->sMethod = "post";
$oHttp->sToUrl = env("APP_URL")."/api/tg/hook";
$oHttp->bIsJson = true;
$oHttp->aData = [
'update_id' => 123456789,
'message' => [
'message_id' => 1,
'from' => [
'id' => 7740568271,
'is_bot' => false,
'first_name' => 'John',
'last_name' => 'Doe',
'username' => 'johndoe',
'language_code' => 'en'
],
'chat' => [
'id' => -4668400285,
'first_name' => 'John',
'last_name' => 'Doe',
'username' => 'johndoe',
'type' => 'private'
],
'date' => 1610000000,
"text" => $s,
]
];
$r = $oHttp->send();
echo "<pre>";
echo($r);
exit;
}
public function test2()
{
echo "hello";
exit;
}
}