system.blade.php 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-select/bootstrap-select.min.css" rel="stylesheet">
  4. <link href="/assets/global/vendor/switchery/switchery.min.css" rel="stylesheet">
  5. <link href="/assets/global/vendor/dropify/dropify.min.css" rel="stylesheet">
  6. @endsection
  7. @section('content')
  8. <div class="page-content container-fluid">
  9. <div class="panel">
  10. <div class="panel-heading">
  11. <h1 class="panel-title"><i class="icon wb-settings"></i>通用配置</h1>
  12. </div>
  13. <div class="panel-body">
  14. <div class="nav-tabs-horizontal" data-plugin="tabs">
  15. <ul class="nav nav-tabs" role="tablist">
  16. <li class="nav-item" role="presentation">
  17. <a class="nav-link active" data-toggle="tab" href="#webSetting" aria-controls="webSetting" role="tab">网站常规</a>
  18. </li>
  19. <li class="nav-item" role="presentation">
  20. <a class="nav-link" data-toggle="tab" href="#account" aria-controls="account" role="tab">账号设置</a>
  21. </li>
  22. <li class="nav-item" role="presentation">
  23. <a class="nav-link" data-toggle="tab" href="#node" aria-controls="node" role="tab">节点设置</a>
  24. </li>
  25. <li class="nav-item" role="presentation">
  26. <a class="nav-link" data-toggle="tab" href="#extend" aria-controls="extend" role="tab">拓展功能</a>
  27. </li>
  28. <li class="nav-item" role="presentation">
  29. <a class="nav-link" data-toggle="tab" href="#checkIn" aria-controls="checkIn" role="tab">签到系统</a>
  30. </li>
  31. <li class="nav-item" role="presentation">
  32. <a class="nav-link" data-toggle="tab" href="#promo" aria-controls="promo" role="tab">推广系统</a>
  33. </li>
  34. <li class="nav-item" role="presentation">
  35. <a class="nav-link" data-toggle="tab" href="#notify" aria-controls="notify" role="tab">通知系统</a>
  36. </li>
  37. <li class="nav-item" role="presentation">
  38. <a class="nav-link" data-toggle="tab" href="#auto" aria-controls="auto" role="tab">自动任务</a>
  39. </li>
  40. <li class="nav-item" role="presentation">
  41. <a class="nav-link" data-toggle="tab" href="#other" aria-controls="other" role="tab">LOGO|客服|统计</a>
  42. </li>
  43. <li class="nav-item" role="presentation">
  44. <a class="nav-link" data-toggle="tab" href="#payment" aria-controls="payment" role="tab">支付系统</a>
  45. </li>
  46. <li class="dropdown nav-item" role="presentation">
  47. <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#" aria-expanded="false">菜单</a>
  48. <div class="dropdown-menu" role="menu">
  49. <a class="dropdown-item active" data-toggle="tab" href="#webSetting" aria-controls="webSetting" role="tab">网站常规</a>
  50. <a class="dropdown-item" data-toggle="tab" href="#account" aria-controls="account" role="tab">账号设置</a>
  51. <a class="dropdown-item" data-toggle="tab" href="#node" aria-controls="node" role="tab">节点设置</a>
  52. <a class="dropdown-item" data-toggle="tab" href="#extend" aria-controls="extend" role="tab">拓展功能</a>
  53. <a class="dropdown-item" data-toggle="tab" href="#checkIn" aria-controls="checkIn" role="tab">签到系统</a>
  54. <a class="dropdown-item" data-toggle="tab" href="#promo" aria-controls="promo" role="tab">推广系统</a>
  55. <a class="dropdown-item" data-toggle="tab" href="#notify" aria-controls="notify" role="tab">通知系统</a>
  56. <a class="dropdown-item" data-toggle="tab" href="#auto" aria-controls="auto" role="tab">自动任务</a>
  57. <a class="dropdown-item" data-toggle="tab" href="#other" aria-controls="other" role="tab">LOGO|客服|统计</a>
  58. <a class="dropdown-item" data-toggle="tab" href="#payment" aria-controls="payment" role="tab">支付系统</a>
  59. </div>
  60. </li>
  61. </ul>
  62. <div class="tab-content py-35 px-35">
  63. <x-system.tab-pane id="webSetting" :active="true">
  64. <x-system.input title="网站名称" :value="$website_name" code="website_name" help="发邮件时展示"/>
  65. <x-system.input title="网站地址" :value="$website_url" code="website_url" help="生成重置密码、在线支付必备" type="url"/>
  66. <x-system.select title="本位货币" code="standard_currency" :list="array_column(config('common.currency'), 'code', 'name')"
  67. help="网站中涉及金钱部分的默认货币"/>
  68. <x-system.input title="苹果账号" :value="$AppStore_id" code="AppStore_id" help="iOS软件设置教程中使用的苹果账号" type="email"/>
  69. <x-system.input title="苹果密码" :value="$AppStore_password" code="AppStore_password" help="iOS软件设置教程中使用的苹果密码" type="password"/>
  70. <x-system.input title="管理员邮箱" :value="$webmaster_email" code="webmaster_email" help="错误提示时会提供管理员邮箱作为联系方式" type="email"/>
  71. <div class="form-group col-lg-6">
  72. <div class="form-row">
  73. <label class="col-md-3 col-form-label" for="website_security_code">网站安全码</label>
  74. <div class="col-md-6">
  75. <div class="input-group">
  76. <input type="text" class="form-control" id="website_security_code" value="{{$website_security_code}}"/>
  77. <span class="input-group-append">
  78. <button class="btn btn-info" type="button" onclick="makeWebsiteSecurityCode()">生成</button>
  79. <button class="btn btn-primary" type="button" onclick="update('website_security_code')">{{trans('common.update')}}</button>
  80. </span>
  81. </div>
  82. <span class="text-help">非空时必须通过<a href="{{route('login')}}?securityCode=" target="_blank">安全入口</a>加上安全码才可访问</span>
  83. </div>
  84. </div>
  85. </div>
  86. <x-system.select title="禁止访问模式" code="forbid_mode" help="依据IP对对应地区进行阻拦,非阻拦地区可正常访问"
  87. :list="['关闭' => '', '阻拦大陆'=> 'ban_mainland', '阻拦中国' => 'ban_china', '阻拦海外' => 'ban_oversea']"/>
  88. <x-system.switch title="阻止机器人访问" code="is_forbid_robot" :check="$is_forbid_robot" help="如果是机器人、爬虫、代理访问网站则会抛出404错误"/>
  89. <x-system.switch title="维护模式" code="maintenance_mode" :check="$maintenance_mode"
  90. help="启用后,用户访问转移至维护界面 | 管理员使用 <a href='javascript:(0)'>{{route('admin.login')}}</a> 登录"/>
  91. <x-system.input title="维护结束时间" :value="$maintenance_time" code="maintenance_time" help="用于维护界面倒计时" type="datetime-local"/>
  92. <x-system.textarea title="维护介绍内容" code="maintenance_content" :value="$maintenance_content" row="3" help="自定义维护内容信息"/>
  93. <x-system.input title="重定向地址" :value="$redirect_url" code="redirect_url" help="触发审计规则时访问请求被阻断并重定向至该地址" type="url"/>
  94. </x-system.tab-pane>
  95. <x-system.tab-pane id="account">
  96. <x-system.switch title="用户注册" code="is_register" :check="$is_register" help="关闭后无法注册"/>
  97. <x-system.select title="第三方登录平台" code="oauth_path" help="请在.ENV中添加设置,再在此处开启平台" multiple="1"
  98. :list="array_flip(config('common.oauth.labels'))"/>
  99. <x-system.select title="账号类型" help="规范站点用户账号的类型,默认为电子邮箱" code="username_type"
  100. :list="['电子邮箱'=> 'email', '手机号码' => 'numeric', '任意用户名' => 'string']"/>
  101. <x-system.select title="邀请注册" code="is_invite_register" :list="['关闭' => '', '可选'=> 1, '必须' => 2]"/>
  102. <x-system.select title="激活账号" code="is_activate_account" :list="['关闭' => '', '注册前激活'=> 1, '注册后激活' => 2]"
  103. help="启用后用户需要通过邮件来激活账号"/>
  104. <x-system.select title="重置密码" code="password_reset_notification" :list="['关闭' => '', '邮箱'=> 'mail']" help="启用后用户可以重置密码"/>
  105. <x-system.switch title="免费邀请码" code="is_free_code" :check="$is_free_code" help="关闭后免费邀请码不可见"/>
  106. <x-system.input title="邀请链接 用户信息字符化" :value="$aff_salt" code="aff_salt"
  107. help="留空时,邀请链接将显示用户ID;填入任意英文/数字 即可对用户链接ID进行加密"/>
  108. <x-system.switch title="随机端口" code="is_rand_port" :check="$is_rand_port" help="注册、添加用户时随机生成端口"/>
  109. <x-system.input-limit title="端口范围" code="min_port" hcode="max_port" :value="$min_port" min="1000" max="$('#max_port').val()"
  110. :hvalue="$max_port" hmin="$('#min_port').val()" hmax="65535" help="端口范围:1000 - 65535"/>
  111. <x-system.input-limit title="初始有效期" code="default_days" :value="$default_days" unit="天" help="用户注册时默认账户有效期,为0即当天到期"/>
  112. <x-system.input-limit title="初始流量" code="default_traffic" :value="$default_traffic" unit="MB" help="用户注册时默认可用流量"/>
  113. <x-system.input-limit title="可生成邀请码数" code="invite_num" :value="$invite_num" help="用户可以生成的邀请码数"/>
  114. <x-system.input-limit title="重置密码次数" code="reset_password_times" :value="$reset_password_times" help="24小时内可以通过邮件重置密码次数"/>
  115. <x-system.select title="邮箱过滤机制" code="is_email_filtering" help="黑名单: 用户可使用任意黑名单外的邮箱注册;白名单:用户只能选择使用白名单中的邮箱后缀注册"
  116. :list="['关闭' => '', '黑名单' => 1, '白名单' => 2]"/>
  117. <x-system.input-limit title="激活账号次数" code="active_times" :value="$active_times" help="24小时内可以通过邮件激活账号次数"/>
  118. <x-system.input-limit title="同IP注册限制" code="register_ip_limit" :value="$register_ip_limit" help="同IP在24小时内允许注册数量,为0/留空时不限制"/>
  119. <x-system.input-limit title="用户-邀请码有效期" code="user_invite_days" :value="$user_invite_days" min="1" unit="天" help="用户自行生成邀请的有效期"/>
  120. <x-system.input-limit title="管理员-邀请码有效期" code="admin_invite_days" :value="$admin_invite_days" min="1" unit="天"
  121. help="管理员生成邀请码的有效期"/>
  122. </x-system.tab-pane>
  123. <x-system.tab-pane id="node">
  124. <x-system.input title="节点订阅地址" :value="$subscribe_domain" code="subscribe_domain" help="(推荐)防止面板域名被DNS投毒后无法正常订阅,需带http://或https://"
  125. :holder="'默认为 '.$website_url" type="url"/>
  126. <x-system.input-limit title="订阅节点数" code="subscribe_max" :value="$subscribe_max" help="客户端订阅时取得几个节点,为0/留空时返回全部节点"/>
  127. <x-system.switch title="随机订阅" code="rand_subscribe" :check="$rand_subscribe" help="启用后,订阅时将随机返回节点信息,否则按节点排序返回"/>
  128. <x-system.switch title="高级订阅" code="is_custom_subscribe" :check="$is_custom_subscribe"
  129. help="启用后,订阅信息顶部将显示过期时间、剩余流量(只支持个别客户端)"/>
  130. <x-system.input title="授权/后端访问域名" :value="$web_api_url" code="web_api_url" help="例:https://demo.proxypanel.cf" type="url"/>
  131. <x-system.input title="V2Ray授权" :value="$v2ray_license" code="v2ray_license"/>
  132. <x-system.input title="Trojan授权" :value="$trojan_license" code="trojan_license"/>
  133. <x-system.input title="V2Ray TLS配置" :value="$v2ray_tls_provider" code="v2ray_tls_provider"
  134. help="后端自动签发/载入TLS证书时用(节点的设置值优先级高于此处)"/>
  135. </x-system.tab-pane>
  136. <x-system.tab-pane id="extend">
  137. <x-system.select title="DDNS模式" code="ddns_mode" help="添加/编辑/删除节点的【域名、ipv4、ipv6】时,自动更新对应内容至DNS服务商"
  138. :list="['关闭' => '', 'Namesilo' => 'namesilo', '阿里云(国际&国内)' => 'aliyun', 'DNSPod' => 'dnspod', 'CloudFlare' => 'cloudflare']"/>
  139. <x-system.input title="DNS服务商Key" :value="$ddns_key" code="ddns_key"
  140. help="浏览<a href='https://proxypanel.gitbook.io/wiki/ddns' target='_blank'>设置指南</a>来设置"/>
  141. <x-system.input title="DNS服务商Secret" :value="$ddns_secret" code="ddns_secret"/>
  142. <hr class="col-lg-12">
  143. <x-system.select title="验证码模式" code="is_captcha"
  144. :list="['关闭' => '', '普通验证码' => 1, '极验Geetest' => 2, 'Google reCaptcha' => 3, 'hCaptcha' => 4]"
  145. help="启用后 登录/注册 需要进行验证码认证"/>
  146. <x-system.input title="验证码 Key" :value="$captcha_key" code="captcha_key"
  147. help='浏览<a href="https://proxypanel.gitbook.io/wiki/captcha" target="_blank">设置指南</a>来设置'/>
  148. <x-system.input title="验证码 Secret/ID" :value="$captcha_secret" code="captcha_secret"/>
  149. </x-system.tab-pane>
  150. <x-system.tab-pane id="checkIn">
  151. <x-system.switch title="签到加流量" code="is_checkin" :check="$is_checkin" help="登录时将根据流量范围随机得到流量"/>
  152. <x-system.input-limit title="时间间隔" code="traffic_limit_time" :value="$traffic_limit_time" help="间隔多久才可以再次签到"/>
  153. <x-system.input-limit title="流量范围" code="min_rand_traffic" hcode="max_rand_traffic" :value="$min_rand_traffic" :hvalue="$max_rand_traffic"
  154. :max="$max_rand_traffic" :hmin="$min_rand_traffic" unit="MB"/>
  155. </x-system.tab-pane>
  156. <x-system.tab-pane id="promo">
  157. <x-system.switch title="推广功能" code="referral_status" :check="$referral_status" help="关闭后用户不可见,但是不影响其正常邀请返利"/>
  158. <x-system.select title="返利模式" code="referral_type" :list="['关闭' => '', '首购返利' => 1, '循环返利' => 2]"
  159. help="切换模式后旧数据不变,新的返利按新的模式计算"/>
  160. <x-system.input-limit title="注册送流量" code="referral_traffic" :value="$referral_traffic" unit="MB" help="根据推广链接、邀请码注册则赠送相应的流量"/>
  161. <x-system.input-limit title="返利比例" code="referral_percent" :value="$referral_percent * 100" max="100" unit="%"
  162. help="根据推广链接注册的账号每笔消费推广人可以分成的比例 "/>
  163. <x-system.input-limit title="提现限制" code="referral_money" :value="$referral_money"
  164. unit="{{array_column(config('common.currency'), 'symbol', 'code')[sysConfig('standard_currency')]}}"
  165. help="满多少元才可以申请提现"/>
  166. </x-system.tab-pane>
  167. <x-system.tab-pane id="notify">
  168. <x-system.input-test title="ServerChan SCKEY" :value="$server_chan_key" code="server_chan_key" help='启用ServerChan,请务必填入本值(<a href=https://sc.ftqq.com
  169. target=_blank>申请 SCKEY</a>)' holder="填入ServerChan的SCKEY -> 再点击更新" test="serverChan"/>
  170. <x-system.input-test title="PushDeer Key" :value="$pushDeer_key" code="pushDeer_key" help='启用PushDeer,请务必填入本值(<a href=http://www.pushdeer.com/official.html
  171. target=_blank>申请 Push Key</a>)' holder="填入PushDeer的Push Key -> 再点击更新" test="pushDeer"/>
  172. <x-system.input-test title="IYUU令牌" :value="$iYuu_token" code="iYuu_token" help='启用爱语飞飞,请务必填入本值(<a href=http://iyuu.cn
  173. target=_blank>申请 IYUU令牌</a>)' holder="填入爱语飞飞的IYUU令牌 -> 再点击更新" test="iYuu"/>
  174. <x-system.input-test title="Bark设备号" :value="$bark_key" code="bark_key" holder="填入Bark的设备号 -> 再点击更新"
  175. help="推送消息到iOS设备,需要在iOS设备里装一个名为Bark的应用,取网址后的一长串字符串,启用Bark,请务必填入本值" test="bark"/>
  176. <x-system.input-test title="Telegram" :value="$telegram_token" code="telegram_token" holder="填入Telegram的 Token -> 再点击更新" help="找 <a href=https://t
  177. .me/BotFather
  178. target=_blank>@BotFather</a> 申请机器人获取TOKEN" test="telegram"/>
  179. <x-system.input-test title="PushPlus Token" :value="$pushplus_token" code="pushplus_token" help='启用PushPlus,请务必填入本值(<a href=https://www.pushplus.plus/push1.html
  180. target=_blank>申请 Token</a>)' holder="请到ServerChan申请" test="pushPlus"/>
  181. <x-system.input title="钉钉自定义机器人 Access Token" :value="$dingTalk_access_token" code="dingTalk_access_token" holder="自定义机器人的WebHook中的access_token"
  182. help="可以阅读<a href=https://open.dingtalk.com/document/group/custom-robot-access#title-jfe-yo9-jl2 target=_blank>钉钉手册</a>查阅步骤"/>
  183. <x-system.input-test title="钉钉自定义机器人 密钥" :value="$dingTalk_secret" code="dingTalk_secret" help='可选填!开启机器人[加签]就是必填项目!'
  184. holder="自定义机器人加签后出现的的密钥" test="dingTalk"/>
  185. <x-system.input title="微信企业ID" :value="$wechat_cid" code="wechat_cid" holder="填入微信企业ID -> 再点击更新"
  186. help="获取<a href=https://work.weixin.qq.com/wework_admin/frame#profile target=_blank>我的企业</a>中的企业ID"/>
  187. <x-system.input title="微信企业应用ID" :value="$wechat_aid" code="wechat_aid" holder="应用的AgentId"
  188. help="在<a href=https://work.weixin.qq.com/wework_admin/frame#apps arget=_blank>应用管理</a>自建中创建应用 - AgentId"/>
  189. <x-system.input-test title="微信企业应用密钥" :value="$wechat_secret" code="wechat_secret" help='应用的Secret(可能需要下载企业微信才能查看)'
  190. holder="应用的Secret" test="weChat"/>
  191. <x-system.input title="微信企业应用TOKEN" :value="$wechat_token" code="wechat_token"
  192. help="{{'应用管理->应用->设置API接收->TOKEN,URL设置:'.route('wechat.verify')}}"/>
  193. <x-system.input title="微信企业应用EncodingAESKey" :value="$wechat_encodingAESKey" code="wechat_encodingAESKey"
  194. help='应用管理->应用->设置API接收->EncodingAESKey'/>
  195. <x-system.input-test title="TG酱Token" :value="$tg_chat_token" code="tg_chat_token" help='启用TG酱,请务必填入本值(<a href=https://t.me/realtgchat_bot
  196. target=_blank>申请 Token</a>)' holder="请到Telegram申请" test="tgChat"/>
  197. <hr class="col-10"/>
  198. <x-system.select title="账号过期通知" code="account_expire_notification" help="通知用户账号即将到期" multiple="1"
  199. :list="['邮箱' => 'mail', '站内通知' => 'database']"/>
  200. <x-system.input-limit title="过期警告阈值" code="expire_days" :value="$expire_days" unit="天" help="【账号过期通知】开始阈值,每日通知用户"/>
  201. <x-system.select title="流量耗尽通知" code="data_exhaust_notification" help="通知用户流量即将耗尽" multiple="1"
  202. :list="['邮箱' => 'mail', '站内通知' => 'database']"/>
  203. <x-system.input-limit title="流量警告阈值" code="traffic_warning_percent" :value="$traffic_warning_percent" unit="%"
  204. help="【流量耗尽通知】开始阈值,每日通知用户"/>
  205. <x-system.select title="节点离线提醒" code="node_offline_notification" help="每10分钟检测节点离线并提醒管理员" multiple="1"
  206. :list="['邮箱' => 'mail', 'Bark' => 'bark', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' =>
  207. 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat', 'TG酱' => 'tgChat', 'PushPlus' => 'pushPlus']"/>
  208. <x-system.input-limit title="离线提醒次数" code="offline_check_times" :value="$offline_check_times" unit="次" help="24小时内提醒n次后不再提醒"/>
  209. <x-system.select title="节点阻断提醒" code="node_blocked_notification" help="每小时检测节点是否被阻断并提醒管理员" multiple="1"
  210. :list="['邮箱' => 'mail', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' => 'telegram', '微信企业' => 'weChat', 'TG酱' => 'tgChat', 'PushPlus'
  211. => 'pushPlus']"/>
  212. <x-system.input-limit title="阻断检测提醒" code="detection_check_times" :value="$detection_check_times" max="12" unit="次"
  213. help="提醒N次后自动下线节点,为0/留空时不限制,不超过12"/>
  214. <x-system.select title="支付成功通知" code="payment_received_notification" help="用户支付订单后通知用户订单状态" multiple="1"
  215. :list="['邮箱' => 'mail', '站内通知' => 'database', 'Telegram' => 'telegram']"/>
  216. <x-system.select title="人工支付确认通知" code="payment_confirm_notification" help="用户使用人工支付后通知管理员处理订单"
  217. :list="['关闭' => '', 'Telegram' => 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat']"/>
  218. <x-system.select title="工单关闭通知" code="ticket_closed_notification" help="工单关闭通知用户" multiple="1"
  219. :list="['邮箱' => 'mail', 'Bark' => 'bark', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' => 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat', 'TG酱' =>
  220. 'tgChat', 'PushPlus' => 'pushPlus']"/>
  221. <x-system.select title="新工单通知" code="ticket_created_notification" help="新工单通知管理/用户,取决于谁创建了新工单" multiple="1"
  222. :list="['邮箱' => 'mail', 'Bark' => 'bark', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' => 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat', 'TG酱' =>
  223. 'tgChat', 'PushPlus' => 'pushPlus']"/>
  224. <x-system.select title="工单回复通知" code="ticket_replied_notification" help="工单回复通知对方" multiple="1"
  225. :list="['邮箱' => 'mail', 'Bark' => 'bark', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' => 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat', 'TG酱' =>
  226. 'tgChat', 'PushPlus' => 'pushPlus']"/>
  227. </x-system.tab-pane>
  228. <x-system.tab-pane id="auto">
  229. <x-system.switch title="自动清除日志" code="is_clear_log" :check="$is_clear_log" help='(推荐)启用后自动清除无用日志'/>
  230. <x-system.switch title="流量自动重置" code="reset_traffic" :check="$reset_traffic" help='用户会按其购买套餐的日期自动重置可用流量'/>
  231. <x-system.switch title="订阅异常自动封禁" code="is_subscribe_ban" :check="$is_subscribe_ban" help='启用后用户订阅链接请求超过设定阈值则自动封禁'/>
  232. <x-system.input-limit title="订阅请求阈值" code="subscribe_ban_times" :value="$subscribe_ban_times" help="24小时内订阅链接请求次数限制"/>
  233. <x-system.switch title="异常自动封号" code="is_traffic_ban" :check="$is_traffic_ban" help='1小时内流量超过异常阈值则自动封号(仅禁用代理)'/>
  234. <x-system.select title="流量异常通知" code="data_anomaly_notification" help="1小时内流量超过异常阈值通知超管" multiple="1"
  235. :list="['邮箱' => 'mail', 'Bark' => 'bark', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' => 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat', 'TG酱' =>
  236. 'tgChat', 'PushPlus' => 'pushPlus']"/>
  237. <x-system.input-limit title="流量异常阈值" code="traffic_ban_value" :value="$traffic_ban_value" min="1" unit="GB"
  238. help="1小时内超过该值,则触发自动封号"/>
  239. <x-system.input-limit title="封号时长" code="traffic_ban_time" :value="$traffic_ban_time" unit="分钟"
  240. help="触发流量异常导致用户被封禁的时长,到期后自动解封"/>
  241. <x-system.switch title="端口回收机制" code="auto_release_port" :check="$auto_release_port"
  242. help="被封禁/过期{{config('tasks.release_port')}}天的账号端口自动释放"/>
  243. <x-system.switch title="过期自动封禁" code="is_ban_status" :check="$is_ban_status"
  244. help="(慎重)封禁整个账号会重置账号的所有数据且会导致用户无法登录,不开启状态下只封禁用户代理"/>
  245. <x-system.select title="节点使用报告" code="node_daily_notification" help="报告各节点流量昨日消耗情况" multiple="1"
  246. :list="['邮箱' => 'mail', 'ServerChan' => 'serverChan', 'PushDeer' => 'pushDear', '爱语飞飞' => 'iYuu', 'Telegram' => 'telegram', '钉钉' => 'dingTalk', '微信企业' => 'weChat', 'TG酱' =>
  247. 'tgChat', 'PushPlus' => 'pushPlus']"/>
  248. </x-system.tab-pane>
  249. <x-system.tab-pane id="other">
  250. <div class="col-12">
  251. @if($errors->any())
  252. <x-alert type="danger" :message="$errors->all()"/>
  253. @endif
  254. @if (Session::has('successMsg'))
  255. <x-alert type="success" :message="Session::get('successMsg')"/>
  256. @endif
  257. </div>
  258. <x-system.input title="首页LOGO" :value="$website_home_logo" code="website_home_logo" type="url"/>
  259. <x-system.input title="站内LOGO" :value="$website_logo" code="website_logo" type="url"/>
  260. <form action="{{route('admin.system.extend')}}" method="post" enctype="multipart/form-data" class="upload-form col-lg-12 row" role="form"
  261. id="setExtend">@csrf
  262. <x-system.input-file title="首页LOGO" code="website_home_logo" :value="$website_home_logo"/>
  263. <x-system.input-file title="站内LOGO" code="website_logo" :value="$website_logo"/>
  264. </form>
  265. <x-system.textarea title="统计代码" code="website_analytics" :value="$website_analytics" help="统计JS"/>
  266. <x-system.textarea title="客服代码" code="website_customer_service" :value="$website_customer_service" help="客服JS"/>
  267. </x-system.tab-pane>
  268. <div class="tab-pane" id="payment" role="tabpanel">
  269. <div class="tab-content pb-100">
  270. <x-system.tab-pane id="paymentSetting" :active="true">
  271. <x-system.select title="支付宝支付" code="is_AliPay"
  272. :list="['关闭' => '', 'F2F' => 'f2fpay', '码支付' => 'codepay', '易支付' => 'epay', '海狸支付' => 'paybeaver', '平头哥支付' => 'theadpay', 'Stripe支付宝' => 'stripe']"/>
  273. <x-system.select title="QQ钱包" code="is_QQPay" :list="['关闭' => '', '码支付' => 'codepay', '易支付' => 'epay']"/>
  274. <x-system.select title="微信支付" code="is_WeChatPay"
  275. :list="['关闭' => '', '码支付' => 'codepay', 'PayJS' => 'payjs', '易支付' => 'epay', '海狸支付' => 'paybeaver', 'Stripe微信' => 'stripe']"/>
  276. <x-system.select title="特殊支付" code="is_otherPay" multiple="1" :list="['麻瓜宝' => 'bitpayx', 'PayPal' => 'paypal', 'Stripe' => 'stripe']"/>
  277. <x-system.input title="自定义商品名称" :value="$subject_name" code="subject_name" help="用于在支付渠道的商品标题显示"/>
  278. <x-system.input title="通用支付回调地址" :value="$website_callback_url" code="website_callback_url"
  279. help="防止因为网站域名被DNS投毒后导致支付无法正常回调,需带http://或https://" :holder="'默认为 '.$website_url" type="url"/>
  280. </x-system.tab-pane>
  281. <x-system.tab-pane id="AlipayF2F">
  282. <div class="form-group col-lg-6 d-flex">
  283. <label class="col-md-3 col-form-label">支付宝F2F</label>
  284. <div class="col-md-9">
  285. 本功能需要<a href="https://open.alipay.com/platform/appManage.htm?#/create/" target="_blank">蚂蚁金服开放平台</a>申请权限及应用
  286. </div>
  287. </div>
  288. <x-system.input title="应用ID" :value="$f2fpay_app_id" code="f2fpay_app_id" help="即:APPID"/>
  289. <x-system.input title="应用私钥" :value="$f2fpay_private_key" code="f2fpay_private_key" help="生成秘钥软件生成时,产生的应用秘钥"/>
  290. <x-system.input title="支付宝公钥" :value="$f2fpay_public_key" code="f2fpay_public_key" help="注意不是应用公钥!"/>
  291. </x-system.tab-pane>
  292. <x-system.tab-pane id="CodePay">
  293. <div class="form-group col-lg-6 d-flex">
  294. <label class="col-md-3 col-form-label">码支付</label>
  295. <div class="col-md-7">
  296. 请到 <a href="https://codepay.fateqq.com/i/377289" target="_blank">码支付</a>申请账号,然后下载登录其挂机软件
  297. </div>
  298. </div>
  299. <x-system.input title="请求URL" :value="$codepay_url" code="codepay_url" holder="https://codepay.fateqq.com/creat_order/?" type="url"/>
  300. <x-system.input title="码支付ID" :value="$codepay_id" code="codepay_id"/>
  301. <x-system.input title="通信密钥" :value="$codepay_key" code="codepay_key"/>
  302. </x-system.tab-pane>
  303. <x-system.tab-pane id="EPay">
  304. <div class="form-group col-lg-6 d-flex">
  305. <label class="col-md-3 col-form-label">易支付</label>
  306. @can('admin.test.epay')
  307. <div class="col-md-7">
  308. <button class="btn btn-primary" type="button" onclick="epayInfo()">查询</button>
  309. </div>
  310. @endcan
  311. </div>
  312. <x-system.input title="接口对接地址" :value="$epay_url" code="epay_url" holder="https://www.example.com" type="url"/>
  313. <x-system.input title="商户ID" :value="$epay_mch_id" code="epay_mch_id"/>
  314. <x-system.input title="商户密钥" :value="$epay_key" code="epay_key"/>
  315. </x-system.tab-pane>
  316. <x-system.tab-pane id="PayJs">
  317. <div class="form-group col-lg-6 d-flex">
  318. <label class="col-md-3 col-form-label">PayJs</label>
  319. <div class="col-md-7">
  320. 请到<a href="https://payjs.cn/ref/zgxjnb" target="_blank">PayJs</a> 申请账号
  321. </div>
  322. </div>
  323. <x-system.input title="商户号" :value="$payjs_mch_id" code="payjs_mch_id"
  324. help='在<a href="https://payjs.cn/dashboard/member" target="_blank">本界面</a>获取信息'/>
  325. <x-system.input title="通信密钥" :value="$payjs_key" code="payjs_key"/>
  326. </x-system.tab-pane>
  327. <x-system.tab-pane id="PayPal">
  328. <div class="form-group col-lg-6 d-flex">
  329. <label class="col-md-3 col-form-label">PayPal</label>
  330. <div class="col-md-7">
  331. 使用商家账号登录<a href="https://www.paypal.com/businessprofile/mytools/apiaccess/firstparty" target="_blank">API凭证申请页</a>,
  332. 同意并获取设置信息
  333. </div>
  334. </div>
  335. <x-system.input title="API用户名" :value="$paypal_username" code="paypal_username"/>
  336. <x-system.input title="API密码" :value="$paypal_password" code="paypal_password"/>
  337. <x-system.input title="签名" :value="$paypal_secret" code="paypal_secret"/>
  338. {{--<x-system.input title="证书" :value="$paypal_certificate" code="paypal_certificate"/>--}}
  339. {{--<x-system.input title="应用ID" :value="$paypal_app_id" code="paypal_app_id"/>--}}
  340. </x-system.tab-pane>
  341. <x-system.tab-pane id="Stripe">
  342. <div class="form-group col-lg-6 d-flex">
  343. <label class="col-md-3 col-form-label">Stripe</label>
  344. </div>
  345. <x-system.input title="Public Key" :value="$stripe_public_key" code="stripe_public_key"/>
  346. <x-system.input title="Secret Key" :value="$stripe_secret_key" code="stripe_secret_key"/>
  347. <x-system.input title="WebHook Signing secret" :value="$stripe_signing_secret" code="stripe_signing_secret"/>
  348. </x-system.tab-pane>
  349. <x-system.tab-pane id="PayBeaver">
  350. <div class="form-group col-lg-6 d-flex">
  351. <label class="col-md-3 col-form-label">海狸支付 PayBeaver</label>
  352. <div class="col-md-7">
  353. 请到<a href="https://merchant.paybeaver.com/?aff_code=iK4GNuX8" target="_blank">海狸支付 PayBeaver</a>申请账号
  354. </div>
  355. </div>
  356. <x-system.input title="App ID" :value="$paybeaver_app_id" code="paybeaver_app_id"
  357. help='<a href="https://merchant.paybeaver.com/" target="_blank">商户中心</a> -&gt; 开发者 -&gt; App ID'/>
  358. <x-system.input title="App Secret" :value="$paybeaver_app_secret" code="paybeaver_app_secret"
  359. help='<a href="https://merchant.paybeaver.com/" target="_blank">商户中心</a> -&gt; 开发者 -&gt; App Secret'/>
  360. </x-system.tab-pane>
  361. <x-system.tab-pane id="THeadPay">
  362. <div class="form-group col-lg-6 d-flex">
  363. <label class="col-md-3 col-form-label">平头哥支付 THeadPay</label>
  364. <div class="col-md-7">
  365. 请到<a href="https://theadpay.com/" target="_blank">平头哥支付 THeadPay</a>申请账号
  366. </div>
  367. </div>
  368. <x-system.input title="接口地址" :value="$theadpay_url" code="theadpay_url" type="url"/>
  369. <x-system.input title="商家ID" :value="$theadpay_mchid" code="theadpay_mchid"/>
  370. <x-system.input title="商家密钥" :value="$theadpay_key" code="theadpay_key"/>
  371. </x-system.tab-pane>
  372. <x-system.tab-pane id="Manual">
  373. <div class="form-group col-lg-12 d-flex">
  374. <label class="col-md-3 col-form-label">人工支付</label>
  375. <div class="col-md-7">
  376. 设置后会自动开启对应显示
  377. </div>
  378. </div>
  379. <div class="col-12">
  380. @if($errors->any())
  381. <x-alert type="danger" :message="$errors->all()"/>
  382. @endif
  383. @if (Session::has('successMsg'))
  384. <x-alert type="success" :message="Session::get('successMsg')"/>
  385. @endif
  386. </div>
  387. <x-system.input title="支付宝二维码" :value="$alipay_qrcode" code="alipay_qrcode" type="url"/>
  388. <x-system.input title="微 信二维码" :value="$wechat_qrcode" code="wechat_qrcode" type="url"/>
  389. <form action="{{route('admin.system.extend')}}" method="post" enctype="multipart/form-data" class="upload-form col-lg-12 row" role="form"
  390. id="setExtend">@csrf
  391. <x-system.input-file title="支付宝二维码" code="alipay_qrcode" :value="$alipay_qrcode"/>
  392. <x-system.input-file title="微 信二维码" code="wechat_qrcode" :value="$wechat_qrcode"/>
  393. </form>
  394. </x-system.tab-pane>
  395. </div>
  396. <ul class="nav nav-tabs nav-tabs-bottom nav-tabs-line dropup" role="tablist">
  397. <li class="nav-item">
  398. <a class="nav-link active" data-toggle="tab" href="#paymentSetting" aria-controls="paymentSetting" role="tab">支付设置</a>
  399. </li>
  400. <li class="nav-item">
  401. <a class="nav-link" data-toggle="tab" href="#AlipayF2F" aria-controls="AlipayF2F" role="tab">支付宝F2F</a>
  402. </li>
  403. <li class="nav-item">
  404. <a class="nav-link" data-toggle="tab" href="#CodePay" aria-controls="CodePay" role="tab">码支付</a>
  405. </li>
  406. <li class="nav-item">
  407. <a class="nav-link" data-toggle="tab" href="#EPay" aria-controls="EPay" role="tab">易支付</a>
  408. </li>
  409. <li class="nav-item">
  410. <a class="nav-link" data-toggle="tab" href="#PayJs" aria-controls="PayJs" role="tab">PayJs</a>
  411. </li>
  412. <li class="nav-item">
  413. <a class="nav-link" data-toggle="tab" href="#PayPal" aria-controls="PayPal" role="tab">PayPal</a>
  414. </li>
  415. <li class="nav-item">
  416. <a class="nav-link" data-toggle="tab" href="#Stripe" aria-controls="Stripe" role="tab">Stripe</a>
  417. </li>
  418. <li class="nav-item">
  419. <a class="nav-link" data-toggle="tab" href="#PayBeaver" aria-controls="PayBeaver" role="tab">PayBeaver</a>
  420. </li>
  421. <li class="nav-item">
  422. <a class="nav-link" data-toggle="tab" href="#THeadPay" aria-controls="THeadPay" role="tab">平头哥支付</a>
  423. </li>
  424. <li class="nav-item">
  425. <a class="nav-link" data-toggle="tab" href="#Manual" aria-controls="Manual" role="tab">人工支付</a>
  426. </li>
  427. <li class="nav-item dropdown" style="display: none;">
  428. <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#" aria-expanded="false" aria-haspopup="true">菜单</a>
  429. <div class="dropdown-menu" role="menu">
  430. <a class="dropdown-item active" data-toggle="tab" href="#paymentSetting" aria-controls="paymentSetting" role="tab">支付设置</a>
  431. <a class="dropdown-item" data-toggle="tab" href="#AlipayF2F" aria-controls="AlipayF2F" role="tab">支付宝F2F</a>
  432. <a class="dropdown-item" data-toggle="tab" href="#CodePay" aria-controls="CodePay" role="tab">码支付</a>
  433. <a class="dropdown-item" data-toggle="tab" href="#EPay" aria-controls="EPay" role="tab">易支付</a>
  434. <a class="dropdown-item" data-toggle="tab" href="#PayJs" aria-controls="PayJs" role="tab">PayJs</a>
  435. <a class="dropdown-item" data-toggle="tab" href="#PayPal" aria-controls="PayPal" role="tab">PayPal</a>
  436. <a class="dropdown-item" data-toggle="tab" href="#Stripe" aria-controls="Stripe" role="tab">Stripe</a>
  437. <a class="dropdown-item" data-toggle="tab" href="#PayBeaver" aria-controls="PayBeaver" role="tab">PayBeaver</a>
  438. <a class="dropdown-item" data-toggle="tab" href="#THeadPay" aria-controls="THeadPay" role="tab">平头哥支付</a>
  439. <a class="dropdown-item" data-toggle="tab" href="#Manual" aria-controls="Manual" role="tab">人工支付</a>
  440. </div>
  441. </li>
  442. </ul>
  443. </div>
  444. </div>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. @endsection
  450. @section('javascript')
  451. <script src="/assets/global/vendor/bootstrap-select/bootstrap-select.min.js"></script>
  452. <script src="/assets/global/vendor/switchery/switchery.min.js"></script>
  453. <script src="/assets/global/vendor/dropify/dropify.min.js"></script>
  454. <script src="/assets/global/js/Plugin/bootstrap-select.js"></script>
  455. <script src="/assets/global/js/Plugin/switchery.js"></script>
  456. <script src="/assets/global/js/Plugin/responsive-tabs.js"></script>
  457. <script src="/assets/global/js/Plugin/tabs.js"></script>
  458. <script src="/assets/custom/jump-tab.js"></script>
  459. <script src="/assets/global/js/Plugin/dropify.js"></script>
  460. <script>
  461. $(document).ready(function() {
  462. $('#forbid_mode').selectpicker('val', '{{$forbid_mode}}');
  463. $('#username_type').selectpicker('val', '{{$username_type ?? 'email'}}');
  464. $('#is_invite_register').selectpicker('val', '{{$is_invite_register}}');
  465. $('#is_activate_account').selectpicker('val', '{{$is_activate_account}}');
  466. $('#ddns_mode').selectpicker('val', '{{$ddns_mode}}');
  467. $('#is_captcha').selectpicker('val', '{{$is_captcha}}');
  468. $('#referral_type').selectpicker('val', '{{$referral_type}}');
  469. $('#is_email_filtering').selectpicker('val', '{{$is_email_filtering}}');
  470. $('#is_AliPay').selectpicker('val', '{{$is_AliPay}}');
  471. $('#is_QQPay').selectpicker('val', '{{$is_QQPay}}');
  472. $('#is_WeChatPay').selectpicker('val', '{{$is_WeChatPay}}');
  473. $('#standard_currency').selectpicker('val', '{{$standard_currency}}');
  474. $('#is_otherPay').selectpicker('val', {!! $is_otherPay !!});
  475. $('#oauth_path').selectpicker('val', {!! $oauth_path !!});
  476. $('#account_expire_notification').selectpicker('val', {!! $account_expire_notification !!});
  477. $('#data_anomaly_notification').selectpicker('val', {!! $data_anomaly_notification !!});
  478. $('#data_exhaust_notification').selectpicker('val', {!! $data_exhaust_notification !!});
  479. $('#node_blocked_notification').selectpicker('val', {!! $node_blocked_notification !!});
  480. $('#node_daily_notification').selectpicker('val', {!! $node_daily_notification !!});
  481. $('#node_offline_notification').selectpicker('val', {!! $node_offline_notification !!});
  482. $('#password_reset_notification').selectpicker('val', '{{$password_reset_notification}}');
  483. $('#payment_confirm_notification').selectpicker('val', '{{$payment_confirm_notification}}');
  484. $('#payment_received_notification').selectpicker('val', {!! $payment_received_notification !!});
  485. $('#ticket_closed_notification').selectpicker('val', {!! $ticket_closed_notification !!});
  486. $('#ticket_created_notification').selectpicker('val', {!! $ticket_created_notification !!});
  487. $('#ticket_replied_notification').selectpicker('val', {!! $ticket_replied_notification !!});
  488. // Get all options within select
  489. disablePayment(document.getElementById('is_AliPay').getElementsByTagName('option'));
  490. disablePayment(document.getElementById('is_QQPay').getElementsByTagName('option'));
  491. disablePayment(document.getElementById('is_WeChatPay').getElementsByTagName('option'));
  492. disablePayment(document.getElementById('is_otherPay').getElementsByTagName('option'));
  493. @if (!$captcha)
  494. disableCaptcha(document.getElementById('is_captcha').getElementsByTagName('option'));
  495. @endif
  496. });
  497. function disablePayment(op) {
  498. for (let i = 1; i < op.length; i++) {
  499. @json($payments).
  500. includes(op[i].value)
  501. ? op[i].disabled = false
  502. : op[i].disabled = true;
  503. }
  504. }
  505. function disableCaptcha(op) {
  506. for (let i = 2; i < op.length; i++) {
  507. op[i].disabled = true;
  508. }
  509. }
  510. // 系统设置更新
  511. function systemUpdate(systemItem, value) {
  512. @can('admin.system.update')
  513. $.post('{{route('admin.system.update')}}', {_token: '{{csrf_token()}}', name: systemItem, value: value}, function(ret) {
  514. if (ret.status === 'success') {
  515. swal.fire({title: ret.message, icon: 'success', timer: 1500, showConfirmButton: false});
  516. } else {
  517. swal.fire({title: ret.message, icon: 'error'}).then(() => window.location.reload());
  518. }
  519. });
  520. @else
  521. swal.fire({title: '您没有权限修改系统参数!', icon: 'error', timer: 1500, showConfirmButton: false});
  522. @endcan
  523. }
  524. // 正常input更新
  525. function update(systemItem) {
  526. systemUpdate(systemItem, $('#' + systemItem).val());
  527. }
  528. // 需要检查限制的更新
  529. function updateFromInput(systemItem, lowerBound = false, upperBound = false) {
  530. let value = parseInt($('#' + systemItem).val());
  531. if (lowerBound !== false && value < lowerBound) {
  532. swal.fire({title: '不能小于' + lowerBound, icon: 'warning', timer: 1500, showConfirmButton: false});
  533. } else if (upperBound !== false && value > upperBound) {
  534. swal.fire({title: '不能大于' + upperBound, icon: 'warning', timer: 1500, showConfirmButton: false});
  535. } else {
  536. systemUpdate(systemItem, value);
  537. }
  538. }
  539. // 其他项更新选择
  540. function updateFromOther(inputType, systemItem) {
  541. let input = $('#' + systemItem);
  542. switch (inputType) {
  543. case 'select':
  544. input.on('changed.bs.select', function() {
  545. systemUpdate(systemItem, $(this).val());
  546. });
  547. break;
  548. case 'multiSelect':
  549. input.on('changed.bs.select', function() {
  550. systemUpdate(systemItem, $(this).val().join(','));
  551. });
  552. break;
  553. case 'switch':
  554. systemUpdate(systemItem, document.getElementById(systemItem).checked ? 1 : 0);
  555. break;
  556. default:
  557. break;
  558. }
  559. }
  560. // 使用通知渠道 发送测试消息
  561. @can('admin.test.notify')
  562. function sendTestNotification(channel) {
  563. $.post('{{route('admin.test.notify')}}', {_token: '{{csrf_token()}}', channel: channel}, function(ret) {
  564. if (ret.status === 'success') {
  565. swal.fire({title: ret.message, icon: 'success', timer: 1500, showConfirmButton: false});
  566. } else {
  567. swal.fire({title: ret.message, icon: 'error'});
  568. }
  569. });
  570. }
  571. @endcan
  572. // 生成网站安全码
  573. function makeWebsiteSecurityCode() {
  574. $.get('{{route('createStr')}}', function(ret) {
  575. $('#website_security_code').val(ret);
  576. });
  577. }
  578. @can('admin.test.epay')
  579. function epayInfo() {
  580. $.get('{{route('admin.test.epay')}}', function(ret) {
  581. if (ret.status === 'success') {
  582. swal.fire({
  583. title: '易支付信息(仅供参考)',
  584. html: '商户状态: ' + ret.data['active'] + ' | 账号余额: ' + ret.data['money'] + ' | 结算账号:' + ret.data['account'] +
  585. '<br\><br\>渠道手续费:【支付宝 - ' + (100 - ret.data['alirate']) + '% | 微信 - ' + (100 - ret.data['wxrate']) +
  586. '% | QQ钱包 - ' + (100 - ret.data['qqrate']) + '%】<br\><br\> 请按照支付平台的介绍为准,本信息纯粹为Api获取信息',
  587. icon: 'info',
  588. });
  589. } else {
  590. swal.fire({title: ret.message, icon: 'error'});
  591. }
  592. });
  593. }
  594. @endcan
  595. </script>
  596. @endsection