Browse Source

Merge branch 'master' of 47.76.126.2:seven/bot-28

seven 1 tuần trước cách đây
mục cha
commit
1986ad4bf8
2 tập tin đã thay đổi với 13 bổ sung6 xóa
  1. 13 3
      app/Http/Controllers/api/Home.php
  2. 0 3
      app/Services/SmsService.php

+ 13 - 3
app/Http/Controllers/api/Home.php

@@ -1,4 +1,14 @@
 <?php
+/*
+ * @Author: Qing 948634023@qq.com
+ * @Date: 2026-01-13 20:52:55
+ * @LastEditors: Qing 948634023@qq.com
+ * @LastEditTime: 2026-03-09 21:03:50
+ * @FilePath: \bot-28\app\Http\Controllers\api\Home.php
+ * @Description: 
+ * ${git_name}
+ * Copyright (c) 2026 by ${git_name_email}, All Rights Reserved. 
+ */
 
 namespace App\Http\Controllers\api;
 
@@ -83,9 +93,9 @@ class Home extends Controller
 
     public function test()
     {
-        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
-        $res = DB::select($sql);
-        return $this->success($res);
+        // $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
+        // $res = DB::select($sql);
+        // return $this->success($res);
     }
 
     public function setMyCommands()

+ 0 - 3
app/Services/SmsService.php

@@ -28,9 +28,6 @@ class SmsService
         $password = config('services.sms.password');
         $content = config("services.sms.content");
         $code = mt_rand(100000, 999999);
-        if ($phone == '13888888888') {
-            return 888888;
-        }
         $content = str_replace("{code}", $code, $content);
         $url = static::$uri . "?u=" . $username . "&p=" . md5($password);
         $url .= "&c=" . urlencode($content);