修改tg bot绑定方式为发送绑定码

QuickEdition(No-js-Encryption)
Malio 7 years ago
parent 69fedbcbf3
commit 493d0232aa

@ -628,7 +628,7 @@ class AuthController extends BaseController
$user->ref_by = 0;
if (($c != null) && $c->user_id != 0) {
$gift_user = User::where('id', '=', $c->user_id)->first();
if ($gift_user->invite_num > 0) {
if ($gift_user->invite_num != 0) {
$user->ref_by = $c->user_id;
$user->money = Config::get('invite_get_money');
$gift_user->transfer_enable += Config::get('invite_gift') * 1024 * 1024 * 1024;

@ -1217,8 +1217,8 @@ $I18N['telegram-connect'] = array(
'zh-cn' => '立即绑定'
);
$I18N['telegram-modal-desc'] = array(
'en' => 'Copy or take a screenshot of this QR Code and send to the Telegram Bot <a href="https://t.me/$1" target="blank">@$1</a>',
'zh-cn' => '将下面的二维码复制或截图发送给 Telegram 机器人 <a href="https://t.me/$1" target="blank">@$1</a>'
'en' => 'Copy this bind code and send to the Telegram Bot <a href="https://t.me/$1" target="blank">@$1</a>',
'zh-cn' => '将下面的绑定码复制发送给 Telegram 机器人 <a href="https://t.me/$1" target="blank">@$1</a>'
);
$I18N['connect-to-another-account'] = array(
'en' => 'Connect to a new account',

@ -231,7 +231,7 @@
</div>
<div class="modal-body">
<p>{$i18n->get('telegram-modal-desc',[$telegram_bot])}</p>
<div id="telegram-qr" style="text-align: center"></div>
<h2 style="text-align: center"><code>{$bind_token}</code></h2>
</div>
<div class="modal-footer bg-whitesmoke br">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{$i18n->get('cancel')}</button>
@ -239,11 +239,6 @@
</div>
</div>
</div>
<script>
jQuery('#telegram-qr').qrcode({
"text": 'mod://bind/{$bind_token}'
});
</script>
{/if}
{if $malio_config['enable_2fa'] == true}

Loading…
Cancel
Save