seven преди 1 седмица
родител
ревизия
ddf4323c8f
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 1 2
      app/Http/Controllers/api/TelegramWebHook.php
  2. 2 2
      app/Services/BetService.php

+ 1 - 2
app/Http/Controllers/api/TelegramWebHook.php

@@ -97,8 +97,7 @@ class TelegramWebHook extends Controller
                 }
                 // 近期注单弹窗
                 if($data === 'betsAlert'){
-                    // $alertText = BetService::recentlyRecord($chatId);
-                    $alertText = '哈哈哈哈';
+                    $alertText = BetService::recentlyRecord($chatId);
                     BetService::alertNotice($callbackId , $alertText);
                 }
 

+ 2 - 2
app/Services/BetService.php

@@ -317,11 +317,11 @@ class BetService extends BaseService
     {
         $list = self::model()::where('member_id',$memberId)->whereIn('status',[self::model()::STATUS_STAY,self::model()::STATUS_SETTLED])->orderBy('id','desc')->forPage($page, $limit)->get();
 
-        $text = "```\n";
+        // $text = "```\n";
         $text = "";
         $text .= "期数 内容 金额 盈亏 \n";
         foreach($list as $k => $v){
-            $text .= "{$v->issue_no} {$v->keywords} {$v->amount} {$v->profit} \n";
+            // $text .= "{$v->issue_no} {$v->keywords} {$v->amount} {$v->profit} \n";
         }
         // $text .= "```\n";