|
@@ -12,7 +12,7 @@ use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
use App\Services\GameplayRuleService;
|
|
|
use App\Constants\GameplayRuleEnum;
|
|
|
-use App\Http\Controllers\admin\Game;
|
|
|
+use App\Services\KeyboardService;
|
|
|
|
|
|
/**
|
|
|
* 投注
|
|
@@ -146,10 +146,17 @@ class IssueService extends BaseService
|
|
|
$info->status = self::model()::STATUS_BETTING;
|
|
|
$info->save();
|
|
|
|
|
|
- $text = "";
|
|
|
- $text .= "第".$info->issue_no."期\n";
|
|
|
- $text .= "🔥🔥🔥🔥🔥开始下注🔥🔥🔥🔥🔥\n";
|
|
|
- self::bettingGroupNotice($text);
|
|
|
+ // $text = "";
|
|
|
+ // $text .= "第".$info->issue_no."期\n";
|
|
|
+ // $text .= "🔥🔥🔥🔥🔥开始下注🔥🔥🔥🔥🔥\n";
|
|
|
+ $replyInfo = KeyboardService::findOne(['button' => '开始下注']);
|
|
|
+ if($replyInfo){
|
|
|
+ $text = $replyInfo->reply;
|
|
|
+ $buttons = json_decode($replyInfo->reply,true);
|
|
|
+ $image = $replyInfo->image;
|
|
|
+ self::bettingGroupNotice($text, $buttons, $image);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return ['code'=>self::YES, 'msg'=>'开始下注'];
|
|
|
}
|