123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- <include file="public@header"/>
- <style>
- .cdnhide{
- display:none;
- }
- .codehide{
- display:none;
- }
- </style>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#A" data-toggle="tab">基本设置</a></li>
- <li><a href="#B" data-toggle="tab">登录配置</a></li>
- <li><a href="#C" data-toggle="tab">直播配置</a></li>
- <li><a href="#D" data-toggle="tab">映票提现配置</a></li>
- <li><a href="#F" data-toggle="tab">支付配置</a></li>
- <li><a href="#O" data-toggle="tab">云存储配置</a></li>
- </ul>
- <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/configpriPost')}" method="post">
- <fieldset>
- <div class="tabbable">
- <div class="tab-content">
- <div class="tab-pane active" id="A">
-
-
-
-
- <div class="form-group">
- <label for="input-sensitive_words" class="col-sm-2 control-label">敏感词</label>
- <div class="col-md-6 col-sm-10">
- <textarea class="form-control" id="input-sensitive_words" name="options[sensitive_words]" >{$config.sensitive_words|default=''}</textarea><p class="help-block">设置多个敏感字,请用英文状态下逗号隔开</p>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
- {:lang('SAVE')}
- </button>
- </div>
- </div>
- </div>
- <div class="tab-pane" id="B">
- <div class="form-group">
- <label for="input-reg_reward" class="col-sm-2 control-label">注册奖励</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-reg_reward"
- name="options[reg_reward]" value="{$config.reg_reward|default=''}">
- <p class="help-block">新用户注册奖励(整数)</p>
- </div>
- </div>
-
-
- <div class="form-group">
- <label for="input-sendcode_switch" class="col-sm-2 control-label">短信验证码开关</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="options[sendcode_switch]">
- <option value="0">关闭</option>
- <option value="1" <eq name="config['sendcode_switch']" value="1">selected</eq>>开启</option>
- </select>
- <p class="help-block">短信验证码开关,关闭后不再发送真实验证码,采用默认验证码123456</p>
- </div>
- </div>
-
-
-
-
-
- <div class="form-group">
- <label for="input-tencent_sms_appid" class="col-sm-2 control-label">腾讯云短信SMS-AppID</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tencent_sms_appid" name="options[tencent_sms_appid]" value="{$config['tencent_sms_appid']|default=''}">
- <p class="help-block">腾讯云控制台==》短信-》应用管理-》应用列表==》 应用详情</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-tencent_sms_appkey" class="col-sm-2 control-label">腾讯云短信SMS-AppKey</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tencent_sms_appkey" name="options[tencent_sms_appkey]" value="{$config['tencent_sms_appkey']|default=''}">
- <p class="help-block">腾讯云控制台==》短信-》应用管理-》应用列表==》 应用详情</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-tencent_sms_signName" class="col-sm-2 control-label">腾讯云短信国内签名</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tencent_sms_signName" name="options[tencent_sms_signName]" value="{$config['tencent_sms_signName']|default=''}">
- <p class="help-block">腾讯云控制台==》短信-》国内短信==》 签名管理</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-tencent_sms_templateCode" class="col-sm-2 control-label">腾讯云国内短信模板ID</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tencent_sms_templateCode" name="options[tencent_sms_templateCode]" value="{$config['tencent_sms_templateCode']|default=''}">
- <p class="help-block">腾讯云控制台==》短信-》国内短信==》 正文模板管理</p>
- </div>
- </div>
-
-
-
-
-
- <div class="form-group">
- <label for="input-iplimit_switch" class="col-sm-2 control-label">短信验证码IP限制开关</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="options[iplimit_switch]">
- <option value="0">关闭</option>
- <option value="1" <eq name="config['iplimit_switch']" value="1">selected</eq>>开启</option>
- </select>
- </div>
- </div>
-
- <div class="form-group">
- <label for="input-iplimit_times" class="col-sm-2 control-label">短信验证码IP限制次数</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-iplimit_times" name="options[iplimit_times]" value="{$config['iplimit_times']|default=''}">
- <p class="help-block">同一IP每天可以发送验证码的最大次数</p>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
- {:lang('SAVE')}
- </button>
- </div>
- </div>
- </div>
- <div class="tab-pane" id="C">
- <div class="form-group">
- <label for="input-auth_islimit" class="col-sm-2 control-label">认证限制</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="options[auth_islimit]">
- <option value="0">关闭</option>
- <option value="1" <eq name="config['auth_islimit']" value="1">selected</eq>>开启</option>
- </select>
- <p class="help-block">主播开播是否需要身份认证</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-level_islimit" class="col-sm-2 control-label">直播等级控制</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="options[level_islimit]">
- <option value="0">关闭</option>
- <option value="1" <eq name="config['level_islimit']" value="1">selected</eq>>开启</option>
- </select>
- <p class="help-block">直播等级控制是否开启</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-level_limit" class="col-sm-2 control-label">直播限制等级</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-level_limit" name="options[level_limit]" value="{$config['level_limit']|default=''}">
- <p class="help-block">直播等级限制开启时,最低开播等级(用户等级)</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-speak_limit" class="col-sm-2 control-label">发言等级限制</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-speak_limit" name="options[speak_limit]" value="{$config['speak_limit']|default=''}">
- <p class="help-block"> 0表示无限制</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-barrage_limit" class="col-sm-2 control-label">弹幕等级限制</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-barrage_limit" name="options[barrage_limit]" value="{$config['barrage_limit']|default=''}"> <p class="help-block">0表示无限制</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-barrage_fee" class="col-sm-2 control-label">弹幕费用</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-barrage_fee" name="options[barrage_fee]" value="{$config['barrage_fee']|default=''}">
- <p class="help-block">每条弹幕的价格(整数)</p>
- </div>
- </div>
-
- <div class="form-group">
- <label for="input-userlist_time" class="col-sm-2 control-label">用户列表请求间隔(秒)</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-userlist_time" name="options[userlist_time]" value="{$config['userlist_time']|default=''}"> <p class="help-block">直播间用户列表刷新间隔时间 注:不小于5s</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-chatserver" class="col-sm-2 control-label">聊天服务器带端口</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-chatserver" name="options[chatserver]" value="{$config['chatserver']|default=''}">
- <p class="help-block"> 格式:http://域名(:端口) 或者 http://IP(:端口)</p>
- </div>
- </div>
-
-
-
- <div class="form-group">
- <label for="input-cdn_switch" class="col-sm-2 control-label">CDN</label>
- <div class="col-md-6 col-sm-10" id="cdn">
-
- <label class="radio-inline"><input type="radio" value="2" name="options[cdn_switch]" <in value="2" name="config['cdn_switch']">checked="checked"</in>>腾讯云</label>
-
- </div>
- </div>
-
-
-
- <div class="form-group">
- <label for="input-tx_appid" class="col-sm-2 control-label">腾讯云直播appid</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_appid" name="options[tx_appid]" value="{$config['tx_appid']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_bizid" class="col-sm-2 control-label">腾讯云直播bizid</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_bizid" name="options[tx_bizid]" value="{$config['tx_bizid']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_push_key" class="col-sm-2 control-label">腾讯云推流防盗链Key</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_push_key" name="options[tx_push_key]" value="{$config['tx_push_key']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_acc_key" class="col-sm-2 control-label">腾讯云直播低延迟Key</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_acc_key" name="options[tx_acc_key]" value="{$config['tx_acc_key']|default=''}">
- <p class="help-block">一般是 直播推流防盗链Key</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_api_key" class="col-sm-2 control-label">腾讯云直播推流鉴权key</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_api_key" name="options[tx_api_key]" value="{$config['tx_api_key']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_play_key" class="col-sm-2 control-label">腾讯云直播播流鉴权key</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_play_key" name="options[tx_play_key]" value="{$config['tx_play_key']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_play_time" class="col-sm-2 control-label">腾讯云直播播流鉴权时间(秒)</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_play_time" name="options[tx_play_time]" value="{$config['tx_play_time']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_play_key_switch" class="col-sm-2 control-label">是否开启腾讯云播流鉴权</label>
- <div class="col-md-6 col-sm-10" id="sdk">
- <label class="radio-inline"><input type="radio" value="0" name="options[tx_play_key_switch]" <if condition="array_key_exists('tx_play_key_switch',$config) && $config['tx_play_key_switch'] eq '0'">checked="checked" </if>>关闭</label>
- <label class="radio-inline"><input type="radio" value="1" name="options[tx_play_key_switch]" <if condition="array_key_exists('tx_play_key_switch',$config) && $config['tx_play_key_switch'] eq '1'">checked="checked" </if>>开启</label>
- <p class="help-block">如果选择开启,请确保腾讯云-->云直播-->域名管理-->{$config['tx_pull']|default=''}-->管理-->访问控制-->鉴权配置 里的信息开启了配置,并保持腾讯云填写的鉴权key和鉴权时间与此处填写的一致,参考文档:<a href="https://cloud.tencent.com/document/product/267/32463" target="_blank">https://cloud.tencent.com/document/product/267/32463</a></p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_push" class="col-sm-2 control-label">腾讯云直播推流域名</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_push" name="options[tx_push]" value="{$config['tx_push']|default=''}">
- <p class="help-block"> 不带 http:// ,最后无 /</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-tx_pull" class="col-sm-2 control-label">腾讯云直播播流域名</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-tx_pull" name="options[tx_pull]" value="{$config['tx_pull']|default=''}">
- <p class="help-block"> 不带 http:// ,最后无 /</p>
- </div>
- </div>
-
-
-
-
-
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
- {:lang('SAVE')}
- </button>
- </div>
- </div>
- </div>
- <div class="tab-pane" id="D">
- <div class="form-group">
- <label for="input-cash_rate" class="col-sm-2 control-label">提现比例</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-cash_rate" name="options[cash_rate]" value="{$config['cash_rate']|default=''}">
- <p class="help-block">(整数)提现一元人民币需要的票数</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-cash_take" class="col-sm-2 control-label">提现抽成(元)</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-cash_take" name="options[cash_take]" value="{$config['cash_take']|default=''}">
- <p class="help-block">(%-整数)百分比<br/>说明: 当提现比例设置为100映票等于1元时,提现抽成比例设置为10%,那么用户提现1000映票时,通过提现比例转换为10元,平台在从10元的基础上抽成10%,用户最终提现到账金额为9元</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-cash_min" class="col-sm-2 control-label">提现最低额度(元)</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-cash_min" name="options[cash_min]" value="{$config['cash_min']|default=''}">
- <p class="help-block">可提现的最小额度,低于该额度无法提现</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-cash_start" class="col-sm-2 control-label">每月提现期</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-cash_start" name="options[cash_start]" value="{$config['cash_start']|default=''}" style="width:100px;display:inline-block;"> -
- <input type="text" class="form-control" id="input-cash_end" name="options[cash_end]" value="{$config['cash_end']|default=''}" style="width:100px;display:inline-block;">
- <p class="help-block">每月提现期限,不在时间段无法提现</p>
- </div>
- </div>
-
- <div class="form-group">
- <label for="input-cash_max_times" class="col-sm-2 control-label">每月提现次数</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-cash_max_times" name="options[cash_max_times]" value="{$config['cash_max_times']|default=''}">
- <p class="help-block">每月可提现最大次数,0表示不限制</p>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
- {:lang('SAVE')}
- </button>
- </div>
- </div>
- </div>
-
- <div class="tab-pane" id="F">
-
- <div class="form-group">
- <label for="input-aliapp_partner" class="col-sm-2 control-label">支付宝合作者身份ID</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-aliapp_partner" name="options[aliapp_partner]" value="{$config['aliapp_partner']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-aliapp_seller_id" class="col-sm-2 control-label">支付宝登录账号</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-aliapp_seller_id" name="options[aliapp_seller_id]" value="{$config['aliapp_seller_id']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-aliapp_key_android" class="col-sm-2 control-label">支付宝安卓密钥</label>
- <div class="col-md-6 col-sm-10">
- <textarea class="form-control" id="input-aliapp_key_android" name="options[aliapp_key_android]" >{$config.aliapp_key_android|default=''}</textarea>
- <p class="help-block">支付宝安卓密钥pkcs8</p>
- </div>
- </div>
-
-
-
-
- <div class="form-group">
- <label for="input-aliapp_check" class="col-sm-2 control-label" style="font-weight: normal;padding-top: 0;">--------------------</label>
- <div class="col-md-6 col-sm-10">
- ----------------------------------------------------------------------------------
- </div>
- </div>
-
-
- <div class="form-group">
- <label for="input-wx_appid" class="col-sm-2 control-label">微信开放平台移动应用AppID</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-wx_appid" name="options[wx_appid]" value="{$config['wx_appid']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-wx_appsecret" class="col-sm-2 control-label">微信开放平台移动应用appsecret</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-wx_appsecret" name="options[wx_appsecret]" value="{$config['wx_appsecret']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-wx_mchid" class="col-sm-2 control-label">微信开放平台绑定商户号mchid</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-wx_mchid" name="options[wx_mchid]" value="{$config['wx_mchid']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label for="input-wx_key" class="col-sm-2 control-label">微信开放平台绑定商户号密钥key</label>
- <div class="col-md-6 col-sm-10">
- <input type="text" class="form-control" id="input-wx_key" name="options[wx_key]" value="{$config['wx_key']|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" style="text-align: center;color: #F00;">{$name_coin}充值支付方式开关</label>
- <div class="col-md-6 col-sm-10">
-
- </div>
- </div>
- <div class="form-group">
- <label for="input-aliapp_switch" class="col-sm-2 control-label">支付宝APP开关</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="options[aliapp_switch]">
- <option value="0">关闭</option>
- <option value="1" <eq name="config['aliapp_switch']" value="1">selected</eq>>开启</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="input-wx_switch" class="col-sm-2 control-label">微信支付APP开关</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="options[wx_switch]">
- <option value="0">关闭</option>
- <option value="1" <eq name="config['wx_switch']" value="1">selected</eq>>开启</option>
- </select>
- </div>
- </div>
-
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
- {:lang('SAVE')}
- </button>
- </div>
- </div>
- </div>
-
- <!-- 云存储设置 -->
- <div class="tab-pane" id="O">
-
- <div class="form-group">
- <label for="input-cloudtype" class="col-sm-2 control-label">选择存储方式</label>
- <div class="col-md-6 col-sm-10" id="cloudtype">
- <label class="radio-inline"><input type="radio" value="1" name="options[cloudtype]" <in value="1" name="config['cloudtype']">checked="checked"</in>>七牛云存储</label>
- </div>
- </div>
- <div id="cloudtype_1" class="cloudtype_hide <neq name="config['cloudtype']" value="1">hide</neq>">
- <div class="form-group">
- <label for="input-aws_bucket" class="col-sm-2 control-label"></label>
- <div class="col-md-6 col-sm-10">
- <p class="help-block">七牛云存储信息请到插件中心--》插件列表里配置</p>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
- {:lang('SAVE')}
- </button>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </fieldset>
- </form>
- </div>
- <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
- <script>
- (function(){
- $('.btn-cancel-thumbnail2').click(function () {
- $('#thumbnail2-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
- $('#thumbnail2').val('');
- });
-
- $("#sdk label").on('click',function(){
- var v=$("input",this).val();
- if(v==1){
- $("#cdn label input[type=radio]").attr('disabled','disabled');
- $("#cdn label input[type=radio][value=2]").removeAttr('disabled');
- $("#cdn label").eq(1).click();
- }else{
- $("#cdn label input[type=radio]").removeAttr('disabled');
- }
- })
-
- $("#cdn label").on('click',function(){
- var v_d=$("input",this).attr('disabled');
- if(v_d=='disabled'){
- return !1;
- }
- var v=$("input",this).val();
- var b=$("#cdn_switch_"+v);
- $(".cdn_bd").hide();
- b.show();
- })
-
- $("#cloudtype label").on('click',function(){
- var v=$("input",this).val();
- var b=$("#cloudtype_"+v);
- $(".cloudtype_bd").siblings('.cloudtype_bd').hide();
- b.show();
- })
-
- $("#duanxin label").on('click',function(){
- var v_d=$("input",this).attr('disabled');
- if(v_d=='disabled'){
- return !1;
- }
- var v=$("input",this).val();
- console.log(v);
- var b=$("#typecode_switch_"+v);
- $(".code_bd").hide();
- b.show();
- })
- //云存储切换
- $("#cloudtype label.radio-inline").on('click',function(){
- var v=$("input",this).val();
-
- $(".cloudtype_hide").addClass('hide');
-
- $("#cloudtype_"+v).removeClass('hide');
-
- })
-
- })()
- </script>
- </body>
- </html>
|