|
@@ -4,6 +4,7 @@
|
|
|
namespace App\Services;
|
|
namespace App\Services;
|
|
|
|
|
|
|
|
use App\Constants\StepStatus;
|
|
use App\Constants\StepStatus;
|
|
|
|
|
+use App\Constants\Util;
|
|
|
use App\Models\Message;
|
|
use App\Models\Message;
|
|
|
use App\Models\PcIssue;
|
|
use App\Models\PcIssue;
|
|
|
use App\Models\Rebate;
|
|
use App\Models\Rebate;
|
|
@@ -19,6 +20,7 @@ use Exception;
|
|
|
use Illuminate\Support\Facades\Log;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
use Telegram\Bot\Api;
|
|
use Telegram\Bot\Api;
|
|
|
use Telegram\Bot\Exceptions\TelegramSDKException;
|
|
use Telegram\Bot\Exceptions\TelegramSDKException;
|
|
|
|
|
+use App\Services\ActivityRewardService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 投注
|
|
* 投注
|
|
@@ -47,6 +49,12 @@ class BetService extends BaseService
|
|
|
$alertText = BetService::recentlyRecord($chatId);
|
|
$alertText = BetService::recentlyRecord($chatId);
|
|
|
BetService::alertNotice($callbackId, $alertText);
|
|
BetService::alertNotice($callbackId, $alertText);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "promotionalActivityAlert":
|
|
|
|
|
+ // 删除个人缓存
|
|
|
|
|
+ Util::delCache($chatId);
|
|
|
|
|
+ $returnMsg = ActivityRewardService::promotionalActivity($chatId);
|
|
|
|
|
+ $telegram->sendMessage($returnMsg);
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
//选择投注记录
|
|
//选择投注记录
|
|
|
$pattern = "/^betRecordType@@\d+$/";
|
|
$pattern = "/^betRecordType@@\d+$/";
|