|
@@ -229,6 +229,29 @@ class TelegramWebHook extends Controller
|
|
|
// ]);
|
|
|
}
|
|
|
|
|
|
+ //选择提现地址
|
|
|
+ $pattern = "/^withdrawAddress@@choose\d+$/";
|
|
|
+ if (preg_match($pattern, $data)) {
|
|
|
+ $id = preg_replace('/^withdrawAddress@@choose/', '', $data);
|
|
|
+ $res = WithdrawService::chooseAddress($chatId, $firstName, $messageId, $id);
|
|
|
+ $telegram->editMessageText($res);
|
|
|
+ }
|
|
|
+
|
|
|
+ //删除地址
|
|
|
+ $pattern = "/^withdrawAddress@@del\d+$/";
|
|
|
+ if (preg_match($pattern, $data)) {
|
|
|
+ $id = preg_replace('/^withdrawAddress@@del/', '', $data);
|
|
|
+ $res = WithdrawService::delAddress($chatId, $id, $messageId);
|
|
|
+ $telegram->editMessageText($res);
|
|
|
+ }
|
|
|
+ //地址详情
|
|
|
+ $pattern = "/^withdrawAddress@@detail\d+$/";
|
|
|
+ if (preg_match($pattern, $data)) {
|
|
|
+ $id = preg_replace('/^withdrawAddress@@detail/', '', $data);
|
|
|
+ $res = WithdrawService::addressDetails($chatId, $messageId, $id);
|
|
|
+ $telegram->editMessageText($res);
|
|
|
+ }
|
|
|
+
|
|
|
//充值账单,下一页
|
|
|
$pattern = "/^topUpBillNextPage@@\d+$/";
|
|
|
if (preg_match($pattern, $data)) {
|