|
|
@@ -1140,6 +1140,41 @@ class BetService extends BaseService
|
|
|
|
|
|
// 群通知
|
|
|
// self::bettingGroupNotice($text, $inlineButton, '');
|
|
|
+
|
|
|
+
|
|
|
+ SendTelegramGroupMessageJob::dispatch($text, $inlineButton, '');
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @description: 统计投注情况通知
|
|
|
+ * @param {*} $issue_no
|
|
|
+ * @return {*}
|
|
|
+ */
|
|
|
+ public static function statNotice($issue_no)
|
|
|
+ {
|
|
|
+ $keywordsList = [];
|
|
|
+ // 虚拟投注情况
|
|
|
+ $fake_bet_list = Cache::get('fake_bet_' . $issue_no, []);
|
|
|
+ foreach($fake_bet_list as $k => $v){
|
|
|
+ if(isset($keywordsList[$v['keywords']])){
|
|
|
+ $keywordsList[$v['keywords']] += $v['amount'];
|
|
|
+ }else{
|
|
|
+ $keywordsList[$v['keywords']] = $v['amount'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 真实投注
|
|
|
+ $list = self::findAll(['issue_no' => $issue_no, 'status' => self::model()::STATUS_STAY]);
|
|
|
+ foreach($list->toArray() as $k => $v){
|
|
|
+ if(isset($keywordsList[$v['keywords']])){
|
|
|
+ $keywordsList[$v['keywords']] += $v['amount'];
|
|
|
+ }else{
|
|
|
+ $keywordsList[$v['keywords']] = $v['amount'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$text3 = "📝 {$issue_no}期投注统计 \n";
|
|
|
|
|
|
if($keywordsList){
|
|
|
@@ -1150,12 +1185,8 @@ class BetService extends BaseService
|
|
|
$text3 .= "-------------- \n";
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ $inlineButton = self::getOperateButton();
|
|
|
SendTelegramGroupMessageJob::dispatch($text3, $inlineButton, '');
|
|
|
-
|
|
|
- SendTelegramGroupMessageJob::dispatch($text, $inlineButton, '');
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|