|
@@ -264,11 +264,7 @@ class SanJinRechargeService extends BaseService
|
|
|
private static function qbApply($chatId, $messageId)
|
|
private static function qbApply($chatId, $messageId)
|
|
|
{
|
|
{
|
|
|
$three_payment_switch = Config::where('field', 'three_payment_switch')->first()->val;
|
|
$three_payment_switch = Config::where('field', 'three_payment_switch')->first()->val;
|
|
|
- if ($three_payment_switch != 1) {
|
|
|
|
|
- $res = WalletService::getBalance($chatId);
|
|
|
|
|
- $res['message_id'] = $messageId;
|
|
|
|
|
- return $res;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
$text = "请选择支付的通道 \n";
|
|
$text = "请选择支付的通道 \n";
|
|
|
$keyboard = [];
|
|
$keyboard = [];
|
|
@@ -276,11 +272,15 @@ class SanJinRechargeService extends BaseService
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
['text' => 'USDT', 'callback_data' => "topup@@topup"],
|
|
['text' => 'USDT', 'callback_data' => "topup@@topup"],
|
|
|
];
|
|
];
|
|
|
- foreach($channel as $k => $v){
|
|
|
|
|
- $keyboard[] = [
|
|
|
|
|
- ['text' => $v, 'callback_data' => "topup_channel@@" .$k]
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if ($three_payment_switch == 1) {
|
|
|
|
|
+ foreach($channel as $k => $v){
|
|
|
|
|
+ $keyboard[] = [
|
|
|
|
|
+ ['text' => $v, 'callback_data' => "topup_channel@@" .$k]
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
['text' => "返回", 'callback_data' => "topUp@@home"]
|
|
['text' => "返回", 'callback_data' => "topUp@@home"]
|