system.blade.php 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-select/bootstrap-select.min.css" type="text/css" rel="stylesheet">
  4. <link href="/assets/global/vendor/switchery/switchery.min.css" type="text/css" rel="stylesheet">
  5. <link href="/assets/global/vendor/dropify/dropify.min.css" type="text/css" rel="stylesheet">
  6. <style>
  7. .text-help {
  8. padding-left: 15px;
  9. }
  10. </style>
  11. @endsection
  12. @section('content')
  13. <div class="page-content container-fluid">
  14. <div class="panel">
  15. <div class="panel-heading">
  16. <h1 class="panel-title"><i class="icon wb-settings"></i>通用配置</h1>
  17. </div>
  18. <div class="panel-body">
  19. <div class="nav-tabs-horizontal" data-plugin="tabs">
  20. <ul class="nav nav-tabs" role="tablist">
  21. <li class="nav-item" role="presentation">
  22. <a class="nav-link active" data-toggle="tab" href="#webSetting" aria-controls="webSetting"
  23. role="tab">网站常规</a>
  24. </li>
  25. <li class="nav-item" role="presentation">
  26. <a class="nav-link" data-toggle="tab" href="#account" aria-controls="account" role="tab">账号设置</a>
  27. </li>
  28. <li class="nav-item" role="presentation">
  29. <a class="nav-link" data-toggle="tab" href="#node" aria-controls="node" role="tab">节点设置</a>
  30. </li>
  31. <li class="nav-item" role="presentation">
  32. <a class="nav-link" data-toggle="tab" href="#extend" aria-controls="extend"
  33. role="tab">拓展功能</a>
  34. </li>
  35. <li class="nav-item" role="presentation">
  36. <a class="nav-link" data-toggle="tab" href="#checkIn" aria-controls="checkIn" role="tab">签到系统</a>
  37. </li>
  38. <li class="nav-item" role="presentation">
  39. <a class="nav-link" data-toggle="tab" href="#promo" aria-controls="promo"
  40. role="tab">推广系统</a>
  41. </li>
  42. <li class="nav-item" role="presentation">
  43. <a class="nav-link" data-toggle="tab" href="#notify" aria-controls="notify"
  44. role="tab">通知系统</a>
  45. </li>
  46. <li class="nav-item" role="presentation">
  47. <a class="nav-link" data-toggle="tab" href="#auto" aria-controls="auto" role="tab">自动任务</a>
  48. </li>
  49. <li class="nav-item" role="presentation">
  50. <a class="nav-link" data-toggle="tab" href="#other" aria-controls="other" role="tab">LOGO|客服|统计</a>
  51. </li>
  52. <li class="nav-item" role="presentation">
  53. <a class="nav-link" data-toggle="tab" href="#payment" aria-controls="payment" role="tab">支付系统</a>
  54. </li>
  55. <li class="dropdown nav-item" role="presentation">
  56. <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#"
  57. aria-expanded="false">菜单</a>
  58. <div class="dropdown-menu" role="menu">
  59. <a class="dropdown-item active" data-toggle="tab" href="#webSetting"
  60. aria-controls="webSetting" role="tab">网站常规</a>
  61. <a class="dropdown-item" data-toggle="tab" href="#account" aria-controls="account"
  62. role="tab">账号设置</a>
  63. <a class="dropdown-item" data-toggle="tab" href="#node" aria-controls="node" role="tab">节点设置</a>
  64. <a class="dropdown-item" data-toggle="tab" href="#extend" aria-controls="extend"
  65. role="tab">拓展功能</a>
  66. <a class="dropdown-item" data-toggle="tab" href="#checkIn" aria-controls="checkIn"
  67. role="tab">签到系统</a>
  68. <a class="dropdown-item" data-toggle="tab" href="#promo" aria-controls="promo"
  69. role="tab">推广系统</a>
  70. <a class="dropdown-item" data-toggle="tab" href="#notify" aria-controls="notify"
  71. role="tab">通知系统</a>
  72. <a class="dropdown-item" data-toggle="tab" href="#auto" aria-controls="auto" role="tab">自动任务</a>
  73. <a class="dropdown-item" data-toggle="tab" href="#other" aria-controls="other"
  74. role="tab">LOGO|客服|统计</a>
  75. <a class="dropdown-item" data-toggle="tab" href="#payment" aria-controls="payment"
  76. role="tab">支付系统</a>
  77. </div>
  78. </li>
  79. </ul>
  80. <div class="tab-content py-35 px-35">
  81. <div class="tab-pane active" id="webSetting" role="tabpanel">
  82. <form action="#" method="post" role="form" class="form-horizontal" autocomplete="off">
  83. <div class="form-row">
  84. <div class="form-group col-lg-6">
  85. <div class="row">
  86. <label class="col-md-3" for="website_name">网站名称</label>
  87. <div class="col-md-6">
  88. <div class="input-group">
  89. <input type="text" class="form-control" id="website_name"
  90. value="{{$website_name}}"/>
  91. <span class="input-group-append">
  92. <button class="btn btn-primary"
  93. type="button"
  94. onclick="update('website_name')">修改
  95. </button>
  96. </span>
  97. </div>
  98. </div>
  99. <span class="offset-md-3 text-help"> 发邮件时展示 </span>
  100. </div>
  101. </div>
  102. <div class="form-group col-lg-6">
  103. <div class="row">
  104. <label class="col-md-3 col-form-label" for="website_url">网站地址</label>
  105. <div class="col-md-6">
  106. <div class="input-group">
  107. <input type="url" class="form-control" id="website_url"
  108. value="{{$website_url}}"/>
  109. <span class="input-group-append">
  110. <button class="btn btn-primary"
  111. type="button"
  112. onclick="update('website_url')">修改
  113. </button>
  114. </span>
  115. </div>
  116. </div>
  117. <span class="text-help offset-md-3">生成重置密码、在线支付必备 </span>
  118. </div>
  119. </div>
  120. <div class="form-group col-lg-6">
  121. <div class="row">
  122. <label class="col-md-3 col-form-label" for="AppStore_id">苹果账号</label>
  123. <div class="col-md-6">
  124. <div class="input-group">
  125. <input type="email" class="form-control" id="AppStore_id"
  126. value="{{$AppStore_id}}"/>
  127. <span class="input-group-append">
  128. <button class="btn btn-primary"
  129. type="button"
  130. onclick="update('AppStore_id')">修改
  131. </button>
  132. </span>
  133. </div>
  134. </div>
  135. <span class="text-help offset-md-3"> iOS软件设置教程中使用的苹果账号 </span>
  136. </div>
  137. </div>
  138. <div class="form-group col-lg-6">
  139. <div class="row">
  140. <label class="col-md-3 col-form-label" for="AppStore_password">苹果密码</label>
  141. <div class="col-md-6">
  142. <div class="input-group">
  143. <input type="password" class="form-control" id="AppStore_password"
  144. value="{{$AppStore_password}}"/>
  145. <span class="input-group-append">
  146. <button class="btn btn-primary"
  147. type="button"
  148. onclick="update('AppStore_password')">修改
  149. </button>
  150. </span>
  151. </div>
  152. </div>
  153. <span class="text-help offset-md-3"> iOS软件设置教程中使用的苹果密码 </span>
  154. </div>
  155. </div>
  156. <div class="form-group col-lg-6">
  157. <div class="row">
  158. <label class="col-md-3 col-form-label" for="webmaster_email">管理员邮箱</label>
  159. <div class="col-md-6">
  160. <div class="input-group">
  161. <input type="email" class="form-control" id="webmaster_email"
  162. value="{{$webmaster_email}}"/>
  163. <span class="input-group-append">
  164. <button class="btn btn-primary"
  165. type="button"
  166. onclick="update('webmaster_email')">修改
  167. </button>
  168. </span>
  169. </div>
  170. </div>
  171. <span class="text-help offset-md-3"> 错误提示时会提供管理员邮箱作为联系方式 </span>
  172. </div>
  173. </div>
  174. <div class="form-group col-lg-6">
  175. <div class="row">
  176. <label class="col-md-3 col-form-label"
  177. for="website_security_code">网站安全码</label>
  178. <div class="col-md-6">
  179. <div class="input-group">
  180. <input type="text" class="form-control" id="website_security_code"
  181. value="{{$website_security_code}}"/>
  182. <span class="input-group-append">
  183. <button class="btn btn-info" type="button"
  184. onclick="makeWebsiteSecurityCode()">生成
  185. </button>
  186. <button class="btn btn-primary" type="button"
  187. onclick="update('website_security_code')">修改
  188. </button>
  189. </span>
  190. </div>
  191. </div>
  192. <span class="text-help offset-md-3">非空时必须通过 <a href="/login?securityCode="
  193. target="_blank">安全入口</a> 加上安全码才可访问 </span>
  194. </div>
  195. </div>
  196. <div class="form-group col-lg-6">
  197. <div class="row">
  198. <label class="col-md-3 col-form-label" for="is_forbid_china">阻止大陆访问</label>
  199. <span class="col-md-9"><input type="checkbox" id="is_forbid_china"
  200. data-plugin="switchery"
  201. @if($is_forbid_china) checked
  202. @endif onchange="updateFromOther('switch','is_forbid_china')"></span>
  203. <span class="text-help offset-md-3"> 开启后大陆IP禁止访问 </span>
  204. </div>
  205. </div>
  206. <div class="form-group col-lg-6">
  207. <div class="row">
  208. <label class="col-md-3 col-form-label"
  209. for="is_forbid_oversea">阻止海外访问</label>
  210. <span class="col-md-9"><input type="checkbox" id="is_forbid_oversea"
  211. data-plugin="switchery"
  212. @if($is_forbid_oversea) checked
  213. @endif onchange="updateFromOther('switch','is_forbid_oversea')"></span>
  214. <span class="text-help offset-md-3"> 开启后海外IP(含港澳台)禁止访问 </span>
  215. </div>
  216. </div>
  217. <div class="form-group col-lg-6">
  218. <div class="row">
  219. <label class="col-md-3 col-form-label" for="is_forbid_robot">阻止机器人访问</label>
  220. <span class="col-md-9"><input type="checkbox" id="is_forbid_robot"
  221. data-plugin="switchery"
  222. @if($is_forbid_robot) checked
  223. @endif onchange="updateFromOther('switch','is_forbid_robot')"></span>
  224. <span class="text-help offset-md-3"> 如果是机器人、爬虫、代理访问网站则会抛出404错误 </span>
  225. </div>
  226. </div>
  227. <div class="form-group col-lg-6">
  228. <div class="row">
  229. <label class="col-md-3 col-form-label" for="maintenance_mode">维护模式</label>
  230. <span class="col-md-9"><input type="checkbox" id="maintenance_mode"
  231. data-plugin="switchery"
  232. @if($maintenance_mode) checked
  233. @endif onchange="updateFromOther('switch','maintenance_mode')"></span>
  234. <span class="text-help offset-md-3"> 启用后,用户访问将转移至维护界面 </span>
  235. </div>
  236. </div>
  237. <div class="form-group col-lg-6">
  238. <div class="row">
  239. <label class="col-md-3" for="maintenance_time">维护结束时间</label>
  240. <div class="col-md-6">
  241. <div class="input-group">
  242. <input type="datetime-local" class="form-control"
  243. id="maintenance_time" value="{{$maintenance_time}}"/>
  244. <span class="input-group-append">
  245. <button class="btn btn-primary"
  246. type="button"
  247. onclick="update('maintenance_time')">修改
  248. </button>
  249. </span>
  250. </div>
  251. </div>
  252. <span class="offset-md-3 text-help"> 用于维护界面倒计时 </span>
  253. </div>
  254. </div>
  255. <div class="form-group col-lg-6">
  256. <div class="row">
  257. <label class="col-md-3" for="maintenance_content">维护介绍内容</label>
  258. <div class="col-md-6">
  259. <div class="input-group">
  260. <textarea class="form-control" rows="3"
  261. id="maintenance_content">{{$maintenance_content}}</textarea>
  262. <span class="input-group-append">
  263. <button class="btn btn-primary"
  264. type="button"
  265. onclick="update('maintenance_content')">修改
  266. </button>
  267. </span>
  268. </div>
  269. </div>
  270. <span class="offset-md-3 text-help"> 自定义维护内容信息 </span>
  271. </div>
  272. </div>
  273. </div>
  274. </form>
  275. </div>
  276. <div class="tab-pane" id="account" role="tabpanel">
  277. <form action="#" method="post" role="form" class="form-horizontal">
  278. <div class="form-row">
  279. <div class="form-group col-lg-6">
  280. <div class="row">
  281. <label class="col-md-3 col-form-label" for="is_register">用户注册</label>
  282. <span class="col-md-9"><input type="checkbox" id="is_register"
  283. data-plugin="switchery"
  284. @if($is_register) checked
  285. @endif onchange="updateFromOther('switch','is_register')"></span>
  286. <span class="text-help offset-md-3"> 关闭后无法注册 </span>
  287. </div>
  288. </div>
  289. <div class="form-group col-lg-6">
  290. <div class="row">
  291. <label class="col-md-3 col-form-label" for="is_invite_register">邀请注册</label>
  292. <select class="col-md-3" id="is_invite_register" data-plugin="selectpicker"
  293. data-style="btn-outline btn-primary"
  294. onchange="updateFromOther('select','is_invite_register')">
  295. <option value="0">关闭</option>
  296. <option value="1">可选</option>
  297. <option value="2">必须</option>
  298. </select>
  299. </div>
  300. </div>
  301. <div class="form-group col-lg-6">
  302. <div class="row">
  303. <label class="col-md-3 col-form-label"
  304. for="is_activate_account">激活账号</label>
  305. <select class="col-md-4" id="is_activate_account" data-plugin="selectpicker"
  306. data-style="btn-outline btn-primary"
  307. onchange="updateFromOther('select','is_activate_account')">
  308. <option value="0">关闭</option>
  309. <option value="1">注册前激活</option>
  310. <option value="2">注册后激活</option>
  311. </select>
  312. <span class="text-help offset-md-3"> 启用后用户需要通过邮件来激活账号 </span>
  313. </div>
  314. </div>
  315. <div class="form-group col-lg-6">
  316. <div class="row">
  317. <label class="col-md-3 col-form-label" for="is_reset_password">重置密码</label>
  318. <span class="col-md-9"><input type="checkbox" id="is_reset_password"
  319. data-plugin="switchery"
  320. @if($is_reset_password) checked
  321. @endif onchange="updateFromOther('switch','is_reset_password')"></span>
  322. <span class="text-help offset-md-3"> 启用后用户可以通过邮件重置密码 </span>
  323. </div>
  324. </div>
  325. <div class="form-group col-lg-6">
  326. <div class="row">
  327. <label class="col-md-3 col-form-label" for="is_free_code">免费邀请码</label>
  328. <span class="col-md-9"><input type="checkbox" id="is_free_code"
  329. data-plugin="switchery"
  330. @if($is_free_code) checked
  331. @endif onchange="updateFromOther('switch','is_free_code')"></span>
  332. <span class="text-help offset-md-3"> 关闭后免费邀请码不可见 </span>
  333. </div>
  334. </div>
  335. <div class="form-group col-lg-6">
  336. <div class="row">
  337. <label for="is_rand_port" class="col-md-3 col-form-label">随机端口</label>
  338. <span class="col-md-9"><input type="checkbox" id="is_rand_port"
  339. data-plugin="switchery"
  340. @if($is_rand_port) checked
  341. @endif onchange="updateFromOther('switch','is_rand_port')"></span>
  342. <span class="text-help offset-md-3"> 注册、添加用户时随机生成端口 </span>
  343. </div>
  344. </div>
  345. <div class="form-group col-lg-6">
  346. <div class="row">
  347. <label class="col-md-3 col-form-label">端口范围</label>
  348. <div class="col-md-7">
  349. <div class="input-group">
  350. <label for="min_port"></label>
  351. <input type="number" class="form-control" id="min_port"
  352. value="{{$min_port}}"
  353. onchange="updateFromInput('min_port','1000','{{$max_port}}')"/>
  354. <div class="input-group-prepend">
  355. <span class="input-group-text"> ~ </span>
  356. </div>
  357. <label for="max_port"></label>
  358. <input type="number" class="form-control" id="max_port"
  359. value="{{$max_port}}"
  360. onchange="updateFromInput('max_port','{{$max_port}}','65535')"/>
  361. </div>
  362. </div>
  363. <span class="text-help offset-md-3"> 端口范围:1000 - 65535 </span>
  364. </div>
  365. </div>
  366. <div class="form-group col-lg-6">
  367. <div class="row">
  368. <label class="col-md-3 col-form-label" for="is_user_rand_port">自定义端口</label>
  369. <span class="col-md-9"><input type="checkbox" id="is_user_rand_port"
  370. data-plugin="switchery"
  371. @if($is_user_rand_port) checked
  372. @endif onchange="updateFromOther('switch','is_user_rand_port')"></span>
  373. <span class="text-help offset-md-3"> 用户可以自定义端口 </span>
  374. </div>
  375. </div>
  376. <div class="form-group col-lg-6">
  377. <div class="row">
  378. <label class="col-md-3 col-form-label" for="default_days">初始有效期</label>
  379. <div class="col-md-7">
  380. <div class="input-group">
  381. <input type="number" class="form-control" id="default_days"
  382. value="{{$default_days}}"/>
  383. <div class="input-group-append">
  384. </div>
  385. <span class="input-group-text">天</span>
  386. <button class="btn btn-primary" type="button"
  387. onclick="updateFromInput('default_days','0')">修改
  388. </button>
  389. </div>
  390. </div>
  391. <span class="text-help offset-md-3"> 用户注册时默认账户有效期,为0即当天到期 </span>
  392. </div>
  393. </div>
  394. <div class="form-group col-lg-6">
  395. <div class="row">
  396. <label class="col-md-3 col-form-label" for="default_traffic">初始流量</label>
  397. <div class="col-md-7">
  398. <div class="input-group">
  399. <input type="number" class="form-control" id="default_traffic"
  400. value="{{$default_traffic}}"/>
  401. <div class="input-group-append">
  402. </div>
  403. <span class="input-group-text">MB</span>
  404. <button class="btn btn-primary" type="button"
  405. onclick="updateFromInput('default_traffic','0')">修改
  406. </button>
  407. </div>
  408. </div>
  409. <span class="text-help offset-md-3"> 用户注册时默认可用流量 </span>
  410. </div>
  411. </div>
  412. <div class="form-group col-lg-6">
  413. <div class="row">
  414. <label class="col-md-3 col-form-label" for="invite_num">可生成邀请码数</label>
  415. <div class="col-md-7">
  416. <div class="input-group">
  417. <input type="number" class="form-control" id="invite_num"
  418. value="{{$invite_num}}"/>
  419. <span class="input-group-append">
  420. <button class="btn btn-primary"
  421. type="button"
  422. onclick="updateFromInput('invite_num','0')">修改
  423. </button>
  424. </span>
  425. </div>
  426. </div>
  427. <span class="text-help offset-md-3"> 用户可以生成的邀请码数 </span>
  428. </div>
  429. </div>
  430. <div class="form-group col-lg-6">
  431. <div class="row">
  432. <label class="col-md-3 col-form-label"
  433. for="reset_password_times">重置密码次数</label>
  434. <div class="col-md-7">
  435. <div class="input-group">
  436. <input type="number" class="form-control" id="reset_password_times"
  437. value="{{$reset_password_times}}"/>
  438. <span class="input-group-append">
  439. <button class="btn btn-primary"
  440. type="button"
  441. onclick="updateFromInput('reset_password_times','0')">修改
  442. </button>
  443. </span>
  444. </div>
  445. </div>
  446. <span class="text-help offset-md-3"> 24小时内可以通过邮件重置密码次数 </span>
  447. </div>
  448. </div>
  449. <div class="form-group col-lg-6">
  450. <div class="row">
  451. <label class="col-md-3 col-form-label"
  452. for="is_email_filtering">邮箱过滤机制</label>
  453. <select class="col-md-3" id="is_email_filtering" data-plugin="selectpicker"
  454. data-style="btn-outline btn-primary"
  455. onchange="updateFromOther('select','is_email_filtering')">
  456. <option value="0">关闭</option>
  457. <option value="1">黑名单</option>
  458. <option value="2">白名单</option>
  459. </select>
  460. <span class="text-help offset-md-3"> 黑名单: 用户可使用任意黑名单外的邮箱注册;白名单: 用户只能选择使用白名单中的邮箱后缀注册 </span>
  461. </div>
  462. </div>
  463. <div class="form-group col-lg-6">
  464. <div class="row">
  465. <label class="col-md-3 col-form-label" for="active_times">激活账号次数</label>
  466. <div class="col-md-7">
  467. <div class="input-group">
  468. <input type="number" class="form-control" id="active_times"
  469. value="{{$active_times}}"/>
  470. <span class="input-group-append">
  471. <button class="btn btn-primary"
  472. type="button"
  473. onclick="updateFromInput('active_times','0')">修改
  474. </button>
  475. </span>
  476. </div>
  477. </div>
  478. <span class="text-help offset-md-3"> 24小时内可以通过邮件激活账号次数 </span>
  479. </div>
  480. </div>
  481. <div class="form-group col-lg-6">
  482. <div class="row">
  483. <label class="col-md-3 col-form-label"
  484. for="register_ip_limit">同IP注册限制</label>
  485. <div class="col-md-7">
  486. <div class="input-group">
  487. <input type="number" class="form-control" id="register_ip_limit"
  488. value="{{$register_ip_limit}}"/>
  489. <span class="input-group-append">
  490. <button class="btn btn-primary"
  491. type="button"
  492. onclick="updateFromInput('register_ip_limit','0')">修改
  493. </button>
  494. </span>
  495. </div>
  496. </div>
  497. <span class="text-help offset-md-3"> 同IP在24小时内允许注册数量,为0时不限制 </span>
  498. </div>
  499. </div>
  500. <div class="form-group col-lg-6">
  501. <div class="row">
  502. <label class="col-md-3 col-form-label"
  503. for="user_invite_days">用户-邀请码有效期</label>
  504. <div class="col-md-7">
  505. <div class="input-group">
  506. <input type="number" class="form-control" id="user_invite_days"
  507. value="{{$user_invite_days}}"/>
  508. <div class="input-group-append">
  509. </div>
  510. <span class="input-group-text">天</span>
  511. <button class="btn btn-primary" type="button"
  512. onchange="updateFromOther('user_invite_days','1',false)">修改
  513. </button>
  514. </div>
  515. </div>
  516. <span class="text-help offset-md-3"> 用户自行生成邀请的有效期 </span>
  517. </div>
  518. </div>
  519. </div>
  520. </form>
  521. </div>
  522. <div class="tab-pane" id="node" role="tabpanel">
  523. <form action="#" method="post" role="form" class="form-horizontal">
  524. <div class="form-row">
  525. <div class="form-group col-lg-6">
  526. <div class="row">
  527. <label class="col-md-3 col-form-label" for="subscribe_domain">节点订阅地址</label>
  528. <div class="col-md-7">
  529. <div class="input-group">
  530. <input type="url" class="form-control" id="subscribe_domain"
  531. value="{{$subscribe_domain}}"/>
  532. <span class="input-group-append">
  533. <button class="btn btn-primary"
  534. type="button"
  535. onclick="update('subscribe_domain')">修改
  536. </button>
  537. </span>
  538. </div>
  539. </div>
  540. <span class="text-help offset-md-3"> (推荐)防止面板域名被DNS投毒后无法正常订阅,需带http://或https:// </span>
  541. </div>
  542. </div>
  543. <div class="form-group col-lg-6">
  544. <div class="row">
  545. <label class="col-md-3 col-form-label" for="subscribe_max">订阅节点数</label>
  546. <div class="col-md-7">
  547. <div class="input-group">
  548. <input type="number" class="form-control" id="subscribe_max"
  549. value="{{$subscribe_max}}"/>
  550. <span class="input-group-append">
  551. <button class="btn btn-primary"
  552. type="button"
  553. onclick="updateFromInput('subscribe_max','0')">修改
  554. </button>
  555. </span>
  556. </div>
  557. </div>
  558. <span class="text-help offset-md-3"> 客户端订阅时取得几个节点,为0时返回全部节点 </span>
  559. </div>
  560. </div>
  561. <div class="form-group col-lg-6">
  562. <div class="row">
  563. <label class="col-md-3 col-form-label" for="mix_subscribe">混合订阅</label>
  564. <span class="col-md-9"><input type="checkbox" id="mix_subscribe"
  565. data-plugin="switchery"
  566. @if($mix_subscribe) checked
  567. @endif onchange="updateFromOther('switch','mix_subscribe')"></span>
  568. <span class="text-help offset-md-3"> 启用后,订阅信息中将包含V2Ray节点信息(仅支持Shadowrocket、Quantumult、v2rayN) </span>
  569. </div>
  570. </div>
  571. <div class="form-group col-lg-6">
  572. <div class="row">
  573. <label class="col-md-3 col-form-label" for="rand_subscribe">随机订阅</label>
  574. <span class="col-md-9"><input type="checkbox" id="rand_subscribe"
  575. data-plugin="switchery"
  576. @if($rand_subscribe) checked
  577. @endif onchange="updateFromOther('switch','rand_subscribe')"></span>
  578. <span class="text-help offset-md-3"> 启用后,订阅时将随机返回节点信息,否则按节点排序返回 </span>
  579. </div>
  580. </div>
  581. <div class="form-group col-lg-6">
  582. <div class="row">
  583. <label class="col-md-3 col-form-label"
  584. for="is_custom_subscribe">高级订阅</label>
  585. <span class="col-md-9"><input type="checkbox" id="is_custom_subscribe"
  586. data-plugin="switchery"
  587. @if($is_custom_subscribe) checked
  588. @endif onchange="updateFromOther('switch','is_custom_subscribe')"></span>
  589. <span
  590. class="text-help offset-md-3"> 启用后,订阅信息顶部将显示过期时间、剩余流量(Quantumult有特殊效果) </span>
  591. </div>
  592. </div>
  593. </div>
  594. </form>
  595. </div>
  596. <div class="tab-pane" id="extend" role="tabpanel">
  597. <form action="#" method="post" role="form" class="form-horizontal">
  598. <div class="form-row">
  599. <div class="form-group col-lg-6">
  600. <div class="row">
  601. <label class="col-md-3 col-form-label" for="is_namesilo">Namesilo</label>
  602. <span class="col-md-9"><input type="checkbox" id="is_namesilo"
  603. data-plugin="switchery"
  604. @if($is_namesilo) checked
  605. @endif onchange="updateFromOther('switch','is_namesilo')"></span>
  606. <span class="text-help offset-md-3"> 添加、编辑节点的绑定域名时自动更新域名DNS记录值为节点IP(<a
  607. href="https://www.namesilo.com/account_api.php?rid=326ec20pa"
  608. target="_blank">创建API KEY</a>) </span>
  609. </div>
  610. </div>
  611. <div class="form-group col-lg-6">
  612. <div class="row">
  613. <label class="col-md-3 col-form-label" for="namesilo_key">Namesilo API
  614. KEY</label>
  615. <div class="col-md-7">
  616. <div class="input-group">
  617. <input type="text" class="form-control" id="namesilo_key"
  618. value="{{$namesilo_key}}"
  619. placeholder="填入Namesilo上申请的API KEY"/>
  620. <span class="input-group-append">
  621. <button class="btn btn-primary"
  622. type="button"
  623. onclick="update('namesilo_key')">修改
  624. </button>
  625. </span>
  626. </div>
  627. </div>
  628. <span class="text-help offset-md-3"> 域名必须是<a
  629. href="https://www.namesilo.com/?rid=326ec20pa" target="_blank">www.namesilo.com</a>上购买的
  630. </span>
  631. </div>
  632. </div>
  633. <div class="form-group col-lg-6">
  634. <div class="row">
  635. <label class="col-md-3 col-form-label"
  636. for="admin_invite_days">管理员-邀请码有效期</label>
  637. <div class="col-md-7">
  638. <div class="input-group">
  639. <input type="number" class="form-control" id="admin_invite_days"
  640. value="{{$admin_invite_days}}"/>
  641. <div class="input-group-append">
  642. </div>
  643. <span class="input-group-text">天</span>
  644. <button class="btn btn-primary" type="button"
  645. onchange="updateFromInput('admin_invite_days','1',false)">修改
  646. </button>
  647. </div>
  648. </div>
  649. <span class="text-help offset-md-3"> 管理员生成邀请码的有效期 </span>
  650. </div>
  651. </div>
  652. <div class="form-group col-lg-6">
  653. <div class="row">
  654. <label class="col-md-3 col-form-label" for="is_captcha">验证码</label>
  655. <select class="col-md-5" id="is_captcha" data-plugin="selectpicker"
  656. data-style="btn-outline btn-primary"
  657. onchange="updateFromOther('select','is_captcha')">
  658. <option value="0">关闭</option>
  659. <option value="1">普通验证码</option>
  660. <option value="2">极验Geetest</option>
  661. <option value="3">Google reCaptcha</option>
  662. <option value="4">hCaptcha</option>
  663. </select>
  664. <span class="text-help offset-md-3"> 启用后登录、注册需要输入验证码 </span>
  665. </div>
  666. </div>
  667. <div class="form-group col-lg-6">
  668. <div class="row">
  669. <label class="col-md-3 col-form-label" for="geetest_id">极验ID</label>
  670. <div class="col-md-7">
  671. <div class="input-group">
  672. <input type="text" class="form-control" id="geetest_id"
  673. value="{{$geetest_id}}"/>
  674. <span class="input-group-append">
  675. <button class="btn btn-primary"
  676. type="button"
  677. onclick="update('geetest_id')">修改
  678. </button>
  679. </span>
  680. </div>
  681. </div>
  682. <span class="text-help offset-md-3"> 本功能需要 <a
  683. href="https://auth.geetest.com/login/" target="_blank">极验后台</a> 申请权限及应用
  684. </span>
  685. </div>
  686. </div>
  687. <div class="form-group col-lg-6">
  688. <div class="row">
  689. <label class="col-md-3 col-form-label" for="geetest_key">极验KEY</label>
  690. <div class="col-md-7">
  691. <div class="input-group">
  692. <input type="text" class="form-control" id="geetest_key"
  693. value="{{$geetest_key}}"/>
  694. <span class="input-group-append">
  695. <button class="btn btn-primary"
  696. type="button"
  697. onclick="update('geetest_key')">修改
  698. </button>
  699. </span>
  700. </div>
  701. </div>
  702. </div>
  703. </div>
  704. <div class="form-group col-lg-6">
  705. <div class="row">
  706. <label class="col-md-3 control-label" for="google_captcha_secret">密钥</label>
  707. <div class="col-md-7">
  708. <div class="input-group">
  709. <input type="text" class="form-control" id="google_captcha_secret"
  710. value="{{$google_captcha_secret}}"/>
  711. <span class="input-group-append">
  712. <button class="btn btn-primary"
  713. type="button"
  714. onclick="update('google_captcha_secret')">修改
  715. </button>
  716. </span>
  717. </div>
  718. </div>
  719. <span class="text-help offset-md-3"> 本功能需要 <a
  720. href="https://www.google.com/recaptcha/admin" target="_blank">Google reCAPTCHA后台</a> 申请权限及应用 (申请需科学上网,日常验证不用)</span>
  721. </div>
  722. </div>
  723. <div class="form-group col-lg-6">
  724. <div class="row">
  725. <label class="col-md-3 col-form-label"
  726. for="google_captcha_sitekey">网站密钥</label>
  727. <div class="col-md-7">
  728. <div class="input-group">
  729. <input type="text" class="form-control" id="google_captcha_sitekey"
  730. value="{{$google_captcha_sitekey}}"/>
  731. <span class="input-group-append">
  732. <button class="btn btn-primary"
  733. type="button"
  734. onclick="update('google_captcha_sitekey')">修改
  735. </button>
  736. </span>
  737. </div>
  738. </div>
  739. </div>
  740. </div>
  741. <div class="form-group col-lg-6">
  742. <div class="row">
  743. <label class="col-md-3 control-label" for="google_captcha_secret">hCaptcha
  744. Secret密钥</label>
  745. <div class="col-md-7">
  746. <div class="input-group">
  747. <input type="text" class="form-control" id="hcaptcha_secret"
  748. value="{{$hcaptcha_secret}}"/>
  749. <span class="input-group-append">
  750. <button class="btn btn-primary"
  751. type="button"
  752. onclick="update('hcaptcha_secret')">修改
  753. </button>
  754. </span>
  755. </div>
  756. </div>
  757. <span class="text-help offset-md-3"> 本功能需要 <a
  758. href="https://hCaptcha.com/?r=2d46d3aa7a4e" target="_blank">hCaptcha后台</a> 申请权限及应用</span>
  759. </div>
  760. </div>
  761. <div class="form-group col-lg-6">
  762. <div class="row">
  763. <label class="col-md-3 col-form-label" for="google_captcha_sitekey">hCaptcha
  764. Site Key网站密钥</label>
  765. <div class="col-md-7">
  766. <div class="input-group">
  767. <input type="text" class="form-control" id="hcaptcha_sitekey"
  768. value="{{$hcaptcha_sitekey}}"/>
  769. <span class="input-group-append">
  770. <button class="btn btn-primary"
  771. type="button"
  772. onclick="update('hcaptcha_sitekey')">修改
  773. </button>
  774. </span>
  775. </div>
  776. </div>
  777. </div>
  778. </div>
  779. </div>
  780. </form>
  781. </div>
  782. <div class="tab-pane" id="checkIn" role="tabpanel">
  783. <form action="#" method="post" role="form" class="form-horizontal">
  784. <div class="form-row">
  785. <div class="form-group col-lg-6">
  786. <div class="row">
  787. <label class="col-md-3 col-form-label" for="is_checkin">签到加流量</label>
  788. <span class="col-md-9"><input type="checkbox" id="is_checkin"
  789. data-plugin="switchery"
  790. @if($is_checkin) checked
  791. @endif onchange="updateFromOther('switch','is_checkin')"></span>
  792. <span class="text-help offset-md-3"> 登录时将根据流量范围随机得到流量 </span>
  793. </div>
  794. </div>
  795. <div class="form-group col-lg-6">
  796. <div class="row">
  797. <label class="col-md-3 col-form-label" for="traffic_limit_time">时间间隔</label>
  798. <div class="col-md-7">
  799. <div class="input-group">
  800. <input type="number" class="form-control" id="traffic_limit_time"
  801. value="{{$traffic_limit_time}}"/>
  802. <div class="input-group-append">
  803. </div>
  804. <span class="input-group-text">分钟</span>
  805. <button class="btn btn-primary" type="button"
  806. onclick="updateFromInput('traffic_limit_time','0')">修改
  807. </button>
  808. </div>
  809. </div>
  810. <span class="text-help offset-md-3"> 间隔多久才可以再次签到</span>
  811. </div>
  812. </div>
  813. <div class="form-group col-lg-6">
  814. <div class="row">
  815. <label class="col-md-3 col-form-label">流量范围</label>
  816. <div class="col-md-7">
  817. <div class="input-group">
  818. <label for="min_rand_traffic"></label>
  819. <input type="number" class="form-control" id="min_rand_traffic"
  820. value="{{$min_rand_traffic}}"
  821. onchange="updateFromInput('min_rand_traffic','0','{{$max_rand_traffic}}')"/>
  822. <div class="input-group-prepend">
  823. <span class="input-group-text"> ~ </span>
  824. </div>
  825. <label for="max_rand_traffic"></label>
  826. <input type="number" class="form-control" id="max_rand_traffic"
  827. value="{{$max_rand_traffic}}"
  828. onchange="updateFromInput('max_rand_traffic','0','{{$min_rand_traffic}}')"/>
  829. <div class="input-group-prepend">
  830. <span class="input-group-text"> MB </span>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </form>
  838. </div>
  839. <div class="tab-pane" id="promo" role="tabpanel">
  840. <form action="#" method="post" role="form" class="form-horizontal">
  841. <div class="form-row">
  842. <div class="form-group col-lg-6">
  843. <div class="row">
  844. <label class="col-md-3 col-form-label" for="referral_status">推广功能</label>
  845. <div class="col-md-7">
  846. <div class="input-group">
  847. <input type="checkbox" id="referral_status" data-plugin="switchery"
  848. @if($referral_status) checked
  849. @endif onchange="updateFromOther('switch','referral_status')">
  850. </div>
  851. </div>
  852. <span class="text-help offset-md-3"> 关闭后用户不可见,但是不影响其正常邀请返利 </span>
  853. </div>
  854. </div>
  855. <div class="form-group col-lg-6">
  856. <div class="row">
  857. <label class="col-md-3 col-form-label" for="referral_type">返利模式</label>
  858. <select class="col-md-5" id="referral_type" data-plugin="selectpicker"
  859. data-style="btn-outline btn-primary"
  860. onchange="updateFromOther('select','referral_type')">
  861. <option value="0">关闭</option>
  862. <option value="1">首购返利</option>
  863. <option value="2">循环返利</option>
  864. </select>
  865. <span class="text-help offset-md-3"> 启用后登录、注册需要输入验证码 </span>
  866. </div>
  867. </div>
  868. <div class="form-group col-lg-6">
  869. <div class="row">
  870. <label class="col-md-3 col-form-label" for="referral_traffic">注册送流量</label>
  871. <div class="col-md-7">
  872. <div class="input-group">
  873. <input type="number" class="form-control" id="referral_traffic"
  874. value="{{$referral_traffic}}"/>
  875. <div class="input-group-append">
  876. <span class="input-group-text">MB</span>
  877. <button class="btn btn-primary" type="button"
  878. onclick="updateFromInput('referral_traffic','0')">修改
  879. </button>
  880. </div>
  881. </div>
  882. </div>
  883. <span class="text-help offset-md-3"> 根据推广链接、邀请码注册则赠送相应的流量 </span>
  884. </div>
  885. </div>
  886. <div class="form-group col-lg-6">
  887. <div class="row">
  888. <label class="col-md-3 col-form-label" for="referral_percent">返利比例</label>
  889. <div class="col-md-7">
  890. <div class="input-group">
  891. <input type="number" class="form-control" id="referral_percent"
  892. value="{{$referral_percent * 100}}"/>
  893. <div class="input-group-append">
  894. <span class="input-group-text">%</span>
  895. <button class="btn btn-primary" type="button"
  896. onchange="updateFromInput('referral_percent','0','100')">
  897. 修改
  898. </button>
  899. </div>
  900. </div>
  901. </div>
  902. <span class="text-help offset-md-3"> 根据推广链接注册的账号每笔消费推广人可以分成的比例 </span>
  903. </div>
  904. </div>
  905. <div class="form-group col-lg-6">
  906. <div class="row">
  907. <label class="col-md-3 col-form-label" for="referral_money">提现限制</label>
  908. <div class="col-md-7">
  909. <div class="input-group">
  910. <input type="number" class="form-control" id="referral_money"
  911. value="{{$referral_money}}"/>
  912. <div class="input-group-append">
  913. <span class="input-group-text">元</span>
  914. <button class="btn btn-primary" type="button"
  915. onclick="updateFromInput('referral_money','0')">修改
  916. </button>
  917. </div>
  918. </div>
  919. </div>
  920. <span class="text-help offset-md-3"> 满多少元才可以申请提现 </span>
  921. </div>
  922. </div>
  923. </div>
  924. </form>
  925. </div>
  926. <div class="tab-pane" id="notify" role="tabpanel">
  927. <form action="#" method="post" role="form" class="form-horizontal">
  928. <div class="row">
  929. <div class="form-group col-lg-6">
  930. <div class="row">
  931. <label class="col-md-3 col-form-label" for="expire_warning">用户过期警告</label>
  932. <span class="col-md-9"><input type="checkbox" id="expire_warning"
  933. data-plugin="switchery"
  934. @if($expire_warning) checked
  935. @endif onchange="updateFromOther('switch','expire_warning')"></span>
  936. <span class="text-help offset-md-3"> 启用后账号距到期还剩阈值设置的值时自动发邮件提醒用户 </span>
  937. </div>
  938. </div>
  939. <div class="form-group col-lg-6">
  940. <div class="row">
  941. <label class="col-md-3 col-form-label" for="expire_days">过期警告阈值</label>
  942. <div class="col-md-7">
  943. <div class="input-group">
  944. <input type="number" class="form-control" id="expire_days"
  945. value="{{$expire_days}}"/>
  946. <div class="input-group-append">
  947. <span class="input-group-text">天</span>
  948. <button class="btn btn-primary" type="button"
  949. onclick="updateFromInput('expire_days','0')">修改
  950. </button>
  951. </div>
  952. </div>
  953. </div>
  954. <span class="text-help offset-md-3"> 账号距离过期还差多少天时发警告邮件 </span>
  955. </div>
  956. </div>
  957. <div class="form-group col-lg-6">
  958. <div class="row">
  959. <label class="col-md-3 col-form-label" for="traffic_warning">用户流量警告</label>
  960. <span class="col-md-9"><input type="checkbox" id="traffic_warning"
  961. data-plugin="switchery"
  962. @if($traffic_warning) checked
  963. @endif onchange="updateFromOther('switch','traffic_warning')"></span>
  964. <span class="text-help offset-md-3"> 启用后账号已使用流量超过警告阈值时自动发邮件提醒用户 </span>
  965. </div>
  966. </div>
  967. <div class="form-group col-lg-6">
  968. <div class="row">
  969. <label for="traffic_warning_percent"
  970. class="col-md-3 col-form-label">流量警告阈值</label>
  971. <div class="col-md-7">
  972. <div class="input-group">
  973. <input type="number" class="form-control"
  974. id="traffic_warning_percent"
  975. value="{{$traffic_warning_percent}}"/>
  976. <div class="input-group-append">
  977. <span class="input-group-text">%</span>
  978. <button class="btn btn-primary" type="button"
  979. onclick="updateFromInput('traffic_warning_percent','0')">
  980. 修改
  981. </button>
  982. </div>
  983. </div>
  984. </div>
  985. <span class="text-help offset-md-3"> 建议设置在70%~90% </span>
  986. </div>
  987. </div>
  988. <div class="form-group col-lg-6">
  989. <div class="row">
  990. <label class="col-md-3 col-form-label" for="is_node_offline">节点离线提醒</label>
  991. <span class="col-md-9"><input type="checkbox" id="is_node_offline"
  992. data-plugin="switchery"
  993. @if($is_node_offline) checked
  994. @endif onchange="updateFromOther('switch','is_node_offline')"></span>
  995. <span class="text-help offset-md-3"> 启用后如果节点离线会推送提醒 </span>
  996. </div>
  997. </div>
  998. <div class="form-group col-lg-6">
  999. <div class="row">
  1000. <label class="col-md-3 col-form-label"
  1001. for="offline_check_times">离线提醒次数</label>
  1002. <div class="col-md-7">
  1003. <div class="input-group">
  1004. <input type="number" class="form-control" id="offline_check_times"
  1005. value="{{$offline_check_times}}"/>
  1006. <div class="input-group-append">
  1007. <span class="input-group-text">次</span>
  1008. <button class="btn btn-primary" type="button"
  1009. onclick="updateFromInput('offline_check_times','0','60')">
  1010. 修改
  1011. </button>
  1012. </div>
  1013. </div>
  1014. </div>
  1015. <span class="text-help offset-md-3"> 提醒几次后不再提醒,为0时不限制,不超过60 </span>
  1016. </div>
  1017. </div>
  1018. <div class="form-group col-lg-6">
  1019. <div class="row">
  1020. <label class="col-md-3 col-form-label" for="nodes_detection">节点阻断检测</label>
  1021. <span class="col-md-9"><input type="checkbox" id="nodes_detection"
  1022. data-plugin="switchery"
  1023. @if($nodes_detection) checked
  1024. @endif onchange="updateFromOther('switch','nodes_detection')"></span>
  1025. <span class="text-help offset-md-3"> 每小时检测节点是否被阻断并提醒 </span>
  1026. </div>
  1027. </div>
  1028. <div class="form-group col-lg-6">
  1029. <div class="row">
  1030. <label class="col-md-3 col-form-label"
  1031. for="detection_check_times">阻断检测提醒</label>
  1032. <div class="col-md-7">
  1033. <div class="input-group">
  1034. <input type="number" class="form-control" id="detection_check_times"
  1035. value="{{$detection_check_times}}"/>
  1036. <div class="input-group-append">
  1037. <span class="input-group-text">次</span>
  1038. <button class="btn btn-primary" type="button"
  1039. onclick="updateFromInput('detection_check_times','0','12')">
  1040. 修改
  1041. </button>
  1042. </div>
  1043. </div>
  1044. </div>
  1045. <span class="text-help offset-md-3"> 提醒N次后自动下线节点,为0时不限制,不超过12 </span>
  1046. </div>
  1047. </div>
  1048. <div class="form-group col-lg-6">
  1049. <div class="row">
  1050. <label class="col-md-3 col-form-label" for="is_notification">推送通知</label>
  1051. <select class="col-md-5" id="is_notification" data-plugin="selectpicker"
  1052. data-style="btn-outline btn-primary"
  1053. onchange="updateFromOther('select','is_notification')">
  1054. <option value="0">关闭</option>
  1055. <option value="serverChan">ServerChan</option>
  1056. <option value="bark">Bark</option>
  1057. </select>
  1058. <span class="text-help offset-md-3"> 推送节点离线提醒、用户流量异常警告、节点使用报告(<a
  1059. href="javascript:sendTestNotification();">发送测试消息</a>)</span>
  1060. </div>
  1061. </div>
  1062. <div class="form-group col-lg-6">
  1063. <div class="row">
  1064. <label class="col-md-3 col-form-label" for="server_chan_key">SCKEY</label>
  1065. <div class="col-md-7">
  1066. <div class="input-group">
  1067. <input type="text" class="form-control" id="server_chan_key"
  1068. value="{{$server_chan_key}}" placeholder="请到ServerChan申请"/>
  1069. <span class="input-group-append">
  1070. <button class="btn btn-primary"
  1071. type="button"
  1072. onclick="update('server_chan_key')">修改
  1073. </button>
  1074. </span>
  1075. </div>
  1076. </div>
  1077. <span class="text-help offset-md-3"> 启用ServerChan,请务必填入本值(<a
  1078. href="http://sc.ftqq.com" target="_blank">申请SCKEY</a>) </span>
  1079. </div>
  1080. </div>
  1081. <div class="form-group col-lg-6">
  1082. <div class="row">
  1083. <label class="col-md-3 col-form-label" for="bark_key">Bark设备号</label>
  1084. <div class="col-md-7">
  1085. <div class="input-group">
  1086. <input type="url" class="form-control" id="bark_key"
  1087. value="{{$bark_key}}" placeholder="安装并打开Bark后取得"/>
  1088. <span class="input-group-append">
  1089. <button class="btn btn-primary"
  1090. type="button"
  1091. onclick="update('bark_key')">修改
  1092. </button>
  1093. </span>
  1094. </div>
  1095. </div>
  1096. <span class="text-help offset-md-3"> 推送消息到iOS设备,需要在iOS设备里装一个名为Bark的应用,取网址后的一长串代码,启用Bark,请务必填入本值 </span>
  1097. </div>
  1098. </div>
  1099. <div class="form-group col-lg-6">
  1100. <div class="row">
  1101. <label class="col-md-3 col-form-label" for="is_push_bear">PushBear</label>
  1102. <span class="col-md-9"><input type="checkbox" id="is_push_bear"
  1103. data-plugin="switchery"
  1104. @if($is_push_bear) checked
  1105. @endif onchange="updateFromOther('switch','is_push_bear')"></span>
  1106. <span class="text-help offset-md-3"> 使用PushBear推送微信消息给用户(<a
  1107. href="https://pushbear.ftqq.com/admin/#/signin" target="_blank">创建消息通道</a>)
  1108. </span>
  1109. </div>
  1110. </div>
  1111. <div class="form-group col-lg-6">
  1112. <div class="row">
  1113. <label class="col-md-3 col-form-label" for="push_bear_send_key">PushBear
  1114. SendKey</label>
  1115. <div class="col-md-7">
  1116. <div class="input-group">
  1117. <input type="text" class="form-control" id="push_bear_send_key"
  1118. value="{{$push_bear_send_key}}" placeholder="创建消息通道后即可获取"/>
  1119. <span class="input-group-append">
  1120. <button class="btn btn-primary"
  1121. type="button"
  1122. onclick="update('push_bear_send_key')">修改
  1123. </button>
  1124. </span>
  1125. </div>
  1126. </div>
  1127. <span class="text-help offset-md-3"> 启用PushBear,请务必填入本值 </span>
  1128. </div>
  1129. </div>
  1130. <div class="form-group col-lg-6">
  1131. <div class="row">
  1132. <label class="col-md-3 col-form-label"
  1133. for="push_bear_qrcode">PushBear订阅二维码</label>
  1134. <div class="col-md-7">
  1135. <div class="input-group">
  1136. <input type="url" class="form-control" id="push_bear_qrcode"
  1137. value="{{$push_bear_qrcode}}" placeholder="填入消息通道的二维码URL"/>
  1138. <span class="input-group-append">
  1139. <button class="btn btn-primary"
  1140. type="button"
  1141. onclick="update('push_bear_qrcode')">修改
  1142. </button>
  1143. </span>
  1144. </div>
  1145. </div>
  1146. <span class="text-help offset-md-3"> 创建消息通道后,在二维码上点击右键“复制图片地址”并粘贴至此处 </span>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. </form>
  1151. </div>
  1152. <div class="tab-pane" id="auto" role="tabpanel">
  1153. <form action="#" method="post" role="form" class="form-horizontal">
  1154. <div class="row">
  1155. <div class="form-group col-lg-6">
  1156. <div class="row">
  1157. <label class="col-md-3 col-form-label" for="is_clear_log">自动清除日志</label>
  1158. <span class="col-md-9"><input type="checkbox" id="is_clear_log"
  1159. data-plugin="switchery"
  1160. @if($is_clear_log) checked
  1161. @endif onchange="updateFromOther('switch','is_clear_log')"></span>
  1162. <span class="text-help offset-md-3"> (推荐)启用后自动清除无用日志 </span>
  1163. </div>
  1164. </div>
  1165. <div class="form-group col-lg-6">
  1166. <div class="row">
  1167. <label class="col-md-3 col-form-label" for="reset_traffic">流量自动重置</label>
  1168. <span class="col-md-9"><input type="checkbox" id="reset_traffic"
  1169. data-plugin="switchery"
  1170. @if($reset_traffic) checked
  1171. @endif onchange="updateFromOther('switch','reset_traffic')"></span>
  1172. <span class="text-help offset-md-3"> 用户会按其购买套餐的日期自动重置可用流量 </span>
  1173. </div>
  1174. </div>
  1175. <div class="form-group col-lg-6">
  1176. <div class="row">
  1177. <label class="col-md-3 col-form-label"
  1178. for="is_subscribe_ban">订阅异常自动封禁</label>
  1179. <span class="col-md-9"><input type="checkbox" id="is_subscribe_ban"
  1180. data-plugin="switchery"
  1181. @if($is_subscribe_ban) checked
  1182. @endif onchange="updateFromOther('switch','is_subscribe_ban')"></span>
  1183. <span class="text-help offset-md-3"> 启用后用户订阅链接请求超过设定阈值则自动封禁 </span>
  1184. </div>
  1185. </div>
  1186. <div class="form-group col-lg-6">
  1187. <div class="row">
  1188. <label class="col-md-3 col-form-label"
  1189. for="subscribe_ban_times">订阅请求阈值</label>
  1190. <div class="col-md-7">
  1191. <div class="input-group">
  1192. <input type="number" class="form-control" id="subscribe_ban_times"
  1193. value="{{$subscribe_ban_times}}"/>
  1194. <span class="input-group-append">
  1195. <button class="btn btn-primary"
  1196. type="button"
  1197. onclick="updateFromInput('subscribe_ban_times','0')">修改
  1198. </button>
  1199. </span>
  1200. </div>
  1201. </div>
  1202. <span class="text-help offset-md-3"> 24小时内订阅链接请求次数限制 </span>
  1203. </div>
  1204. </div>
  1205. <div class="form-group col-lg-6">
  1206. <div class="row">
  1207. <label class="col-md-3 col-form-label" for="is_traffic_ban">异常自动封号</label>
  1208. <span class="col-md-9"><input type="checkbox" id="is_traffic_ban"
  1209. data-plugin="switchery"
  1210. @if($is_traffic_ban) checked
  1211. @endif onchange="updateFromOther('switch','is_traffic_ban')"/></span>
  1212. <span class="text-help offset-md-3"> 1小时内流量超过异常阈值则自动封号(仅禁用代理) </span>
  1213. </div>
  1214. </div>
  1215. <div class="form-group col-lg-6">
  1216. <div class="row">
  1217. <label class="col-md-3 col-form-label"
  1218. for="traffic_ban_value">流量异常阈值</label>
  1219. <div class="col-md-7">
  1220. <div class="input-group">
  1221. <input type="number" class="form-control" id="traffic_ban_value"
  1222. value="{{$traffic_ban_value}}"/>
  1223. <div class="input-group-append">
  1224. <span class="input-group-text">GB</span>
  1225. <button class="btn btn-primary" type="button"
  1226. onclick="updateFromInput('traffic_ban_value', '1')">修改
  1227. </button>
  1228. </div>
  1229. </div>
  1230. </div>
  1231. <span class="text-help offset-md-3"> 1小时内超过该值,则触发自动封号 </span>
  1232. </div>
  1233. </div>
  1234. <div class="form-group col-lg-6">
  1235. <div class="row">
  1236. <label class="col-md-3 col-form-label" for="traffic_ban_time">封号时长</label>
  1237. <div class="col-md-7">
  1238. <div class="input-group">
  1239. <input type="number" class="form-control" id="traffic_ban_time"
  1240. value="{{$traffic_ban_time}}"/>
  1241. <div class="input-group-append">
  1242. <span class="input-group-text">分钟</span>
  1243. <button class="btn btn-primary" type="button"
  1244. onclick="updateFromInput('traffic_ban_time', '0')">修改
  1245. </button>
  1246. </div>
  1247. </div>
  1248. </div>
  1249. <span class="text-help offset-md-3"> 触发流量异常导致用户被封禁的时长,到期后自动解封 </span>
  1250. </div>
  1251. </div>
  1252. <div class="form-group col-lg-6">
  1253. <div class="row">
  1254. <label class="col-md-3 col-form-label"
  1255. for="auto_release_port">端口自动释放</label>
  1256. <span class="col-md-9"><input type="checkbox" id="auto_release_port"
  1257. data-plugin="switchery"
  1258. @if($auto_release_port) checked
  1259. @endif onchange="updateFromOther('switch','auto_release_port')"></span>
  1260. <span class="text-help offset-md-3"> 被封禁和过期一个月的用户端口自动释放 </span>
  1261. </div>
  1262. </div>
  1263. <div class="form-group col-lg-6">
  1264. <div class="row">
  1265. <label class="col-md-3 col-form-label" for="is_ban_status">过期自动封禁</label>
  1266. <span class="col-md-9"><input type="checkbox" id="is_ban_status"
  1267. data-plugin="switchery"
  1268. @if($is_ban_status) checked
  1269. @endif onchange="updateFromOther('switch','is_ban_status')"></span>
  1270. <span class="text-help offset-md-3"> (慎重)封禁整个账号会重置账号的所有数据且会导致用户无法登录, 不开启状态下只封禁用户代理 </span>
  1271. </div>
  1272. </div>
  1273. <div class="form-group col-lg-6">
  1274. <div class="row">
  1275. <label class="col-md-3 col-form-label"
  1276. for="node_daily_report">节点使用报告</label>
  1277. <span class="col-md-9"><input type="checkbox" id="node_daily_report"
  1278. data-plugin="switchery"
  1279. @if($node_daily_report) checked
  1280. @endif onchange="updateFromOther('switch','node_daily_report')"></span>
  1281. <span class="text-help offset-md-3"> 每天早上9点推送昨天节点的使用情况 </span>
  1282. </div>
  1283. </div>
  1284. </div>
  1285. </form>
  1286. </div>
  1287. <div class="tab-pane" id="other" role="tabpanel">
  1288. <form action="/admin/setExtend" method="post" enctype="multipart/form-data"
  1289. class="upload-form" role="form" id="setExtend">
  1290. {{csrf_field()}}
  1291. <div class="form-row">
  1292. <div class="form-group col-lg-6">
  1293. <div class="row">
  1294. <label class="col-form-label col-md-3"
  1295. for="website_home_logo">首页LOGO</label>
  1296. <div class="col-md-9">
  1297. <input type="file" id="website_home_logo" data-plugin="dropify"
  1298. data-default-file={{$website_home_logo?:'/assets/images/default.png'}} />
  1299. <button type="submit" class="btn btn-success float-right mt-10"> 提 交
  1300. </button>
  1301. </div>
  1302. </div>
  1303. </div>
  1304. <div class="form-group col-lg-6">
  1305. <div class="row">
  1306. <label class="col-form-label col-md-3" for="website_logo">站内LOGO</label>
  1307. <div class="col-md-9">
  1308. <input type="file" id="website_logo" data-plugin="dropify"
  1309. data-default-file={{$website_logo?:'/assets/images/default.png'}} />
  1310. <button type="submit" class="btn btn-success float-right mt-10"> 提 交
  1311. </button>
  1312. </div>
  1313. </div>
  1314. </div>
  1315. <div class="form-group col-lg-6">
  1316. <div class="row">
  1317. <label class="col-form-label col-md-3" for="website_analytics">统计代码</label>
  1318. <div class="col-md-9">
  1319. <textarea class="form-control" rows="10"
  1320. id="website_analytics">{{$website_analytics}}</textarea>
  1321. <button type="submit" class="btn btn-success float-right mt-10"> 提 交
  1322. </button>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="form-group col-lg-6">
  1327. <div class="row">
  1328. <label class="col-form-label col-md-3"
  1329. for="website_customer_service">客服代码</label>
  1330. <div class="col-md-9">
  1331. <textarea class="form-control" rows="10"
  1332. id="website_customer_service">{{$website_customer_service}}</textarea>
  1333. <button type="submit" class="btn btn-success float-right mt-10"> 提 交
  1334. </button>
  1335. </div>
  1336. </div>
  1337. </div>
  1338. </div>
  1339. </form>
  1340. </div>
  1341. <div class="tab-pane" id="payment" role="tabpanel">
  1342. <form action="#" method="post" role="form" class="form-horizontal">
  1343. <div class="row pb-70">
  1344. <div class="form-group col-lg-6">
  1345. <div class="row">
  1346. <label class="col-md-3 col-form-label" for="is_AliPay">支付宝支付</label>
  1347. <select class="col-md-3" id="is_AliPay" data-plugin="selectpicker"
  1348. data-style="btn-outline btn-primary"
  1349. onchange="updateFromOther('select','is_AliPay')">
  1350. <option value="">关闭</option>
  1351. <option value="f2fpay">F2F</option>
  1352. <option value="codepay">码支付</option>
  1353. </select>
  1354. </div>
  1355. </div>
  1356. <div class="form-group col-lg-6">
  1357. <div class="row">
  1358. <label class="col-md-3 col-form-label" for="is_QQPay">QQ钱包</label>
  1359. <select class="col-md-3" id="is_QQPay" data-plugin="selectpicker"
  1360. data-style="btn-outline btn-primary"
  1361. onchange="updateFromOther('select','is_QQPay')">
  1362. <option value="">关闭</option>
  1363. <option value="codepay">码支付</option>
  1364. </select>
  1365. </div>
  1366. </div>
  1367. <div class="form-group col-lg-6">
  1368. <div class="row">
  1369. <label class="col-md-3 col-form-label" for="is_WeChatPay">微信支付</label>
  1370. <select class="col-md-3" id="is_WeChatPay" data-plugin="selectpicker"
  1371. data-style="btn-outline btn-primary"
  1372. onchange="updateFromOther('select','is_WeChatPay')">
  1373. <option value="">关闭</option>
  1374. <option value="codepay">码支付</option>
  1375. <option value="payjs">PayJS</option>
  1376. </select>
  1377. </div>
  1378. </div>
  1379. <div class="form-group col-lg-6">
  1380. <div class="row">
  1381. <label class="col-md-3 col-form-label" for="is_otherPay">特殊支付</label>
  1382. <select class="col-md-3" id="is_otherPay" data-plugin="selectpicker"
  1383. data-style="btn-outline btn-primary"
  1384. onchange="updateFromOther('select','is_otherPay')">
  1385. <option value="">关闭</option>
  1386. <option value="bitpayx">麻瓜宝</option>
  1387. <option value="paypal">PayPal</option>
  1388. </select>
  1389. </div>
  1390. </div>
  1391. <div class="form-group col-lg-6">
  1392. <div class="row">
  1393. <label class="col-md-3 col-form-label" for="subject_name">自定义商品名称</label>
  1394. <div class="col-md-7">
  1395. <div class="input-group">
  1396. <input type="text" class="form-control" id="subject_name"
  1397. value="{{$subject_name}}"/>
  1398. <span class="input-group-append">
  1399. <button class="btn btn-primary"
  1400. type="button"
  1401. onclick="update('subject_name')">修改
  1402. </button>
  1403. </span>
  1404. </div>
  1405. </div>
  1406. <span class="text-help offset-md-3"> 用于在支付渠道的商品标题显示 </span>
  1407. </div>
  1408. </div>
  1409. <div class="form-group col-lg-6">
  1410. <div class="row">
  1411. <label class="col-form-label col-md-3"
  1412. for="website_callback_url">通用支付回调地址</label>
  1413. <div class="col-md-7">
  1414. <div class="input-group">
  1415. <input type="text" class="form-control" id="website_callback_url"
  1416. value="{{$website_callback_url}}"/>
  1417. <span class="input-group-append">
  1418. <button class="btn btn-primary"
  1419. type="button"
  1420. onclick="update('website_callback_url')">修改
  1421. </button>
  1422. </span>
  1423. </div>
  1424. </div>
  1425. <span class="text-help offset-md-3"> 防止因为网站域名被DNS投毒后导致支付无法正常回调,需带http://或https:// </span>
  1426. </div>
  1427. </div>
  1428. </div>
  1429. <div class="row pb-70">
  1430. <div class="form-group col-lg-6">
  1431. <div class="row">
  1432. <label class="col-md-3 col-form-label">支付宝F2F</label>
  1433. <div class="col-md-7">
  1434. 本功能需要 <a href="https://open.alipay.com/platform/home.htm"
  1435. target="_blank">蚂蚁金服开放平台</a> 申请权限及应用
  1436. </div>
  1437. </div>
  1438. </div>
  1439. <div class="form-group col-lg-6">
  1440. <div class="row">
  1441. <label class="col-md-3 col-form-label" for="f2fpay_app_id">应用ID</label>
  1442. <div class="col-md-7">
  1443. <div class="input-group">
  1444. <input type="text" class="form-control" id="f2fpay_app_id"
  1445. value="{{$f2fpay_app_id}}"/>
  1446. <span class="input-group-append">
  1447. <button class="btn btn-primary"
  1448. type="button"
  1449. onclick="update('f2fpay_app_id')">修改
  1450. </button>
  1451. </span>
  1452. </div>
  1453. </div>
  1454. <span class="text-help offset-md-3">即:APPID</span>
  1455. </div>
  1456. </div>
  1457. <div class="form-group col-lg-6">
  1458. <div class="row">
  1459. <label class="col-md-3 col-form-label" for="f2fpay_private_key">应用私钥</label>
  1460. <div class="col-md-7">
  1461. <div class="input-group">
  1462. <input class="form-control" type="text" id="f2fpay_private_key"
  1463. value="{{$f2fpay_private_key}}"/>
  1464. <span class="input-group-append">
  1465. <button class="btn btn-primary"
  1466. type="button"
  1467. onclick="update('f2fpay_private_key')">修改
  1468. </button>
  1469. </span>
  1470. </div>
  1471. </div>
  1472. <span class="text-help offset-md-3">生成秘钥软件生成时,产生的应用秘钥</span>
  1473. </div>
  1474. </div>
  1475. <div class="form-group col-lg-6">
  1476. <div class="row">
  1477. <label class="col-md-3 col-form-label" for="f2fpay_public_key">支付宝公钥</label>
  1478. <div class="col-md-7">
  1479. <div class="input-group">
  1480. <input type="text" class="form-control" id="f2fpay_public_key"
  1481. value="{{$f2fpay_public_key}}"/>
  1482. <span class="input-group-append">
  1483. <button class="btn btn-primary"
  1484. type="button"
  1485. onclick="update('f2fpay_public_key')">修改
  1486. </button>
  1487. </span>
  1488. </div>
  1489. </div>
  1490. <span class="text-help offset-md-3"> 注意不是应用公钥! </span>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. <div class="row pb-70">
  1495. <div class="form-group col-lg-6">
  1496. <div class="row">
  1497. <label class="col-md-3 col-form-label">码支付</label>
  1498. <div class="col-md-7">
  1499. 请到 <a href="https://codepay.fateqq.com/i/377289" target="_blank">码支付</a>
  1500. 申请账号,然后下载登录其挂机软件
  1501. </div>
  1502. </div>
  1503. </div>
  1504. <div class="form-group col-lg-6">
  1505. <div class="row">
  1506. <label class="col-md-3 col-form-label" for="codepay_url">请求URL</label>
  1507. <div class="col-md-7">
  1508. <div class="input-group">
  1509. <input type="text" class="form-control" id="codepay_url"
  1510. value="{{$codepay_url}}"/>
  1511. <span class="input-group-append">
  1512. <button class="btn btn-primary"
  1513. type="button"
  1514. onclick="update('codepay_url')">修改
  1515. </button>
  1516. </span>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. <div class="form-group col-lg-6">
  1522. <div class="row">
  1523. <label class="col-md-3 col-form-label" for="codepay_id">码支付ID</label>
  1524. <div class="col-md-7">
  1525. <div class="input-group">
  1526. <input type="text" class="form-control" id="codepay_id"
  1527. value="{{$codepay_id}}"/>
  1528. <span class="input-group-append">
  1529. <button class="btn btn-primary"
  1530. type="button"
  1531. onclick="update('codepay_id')">修改
  1532. </button>
  1533. </span>
  1534. </div>
  1535. </div>
  1536. </div>
  1537. </div>
  1538. <div class="form-group col-lg-6">
  1539. <div class="row">
  1540. <label class="col-md-3 col-form-label" for="codepay_key">码支付通信密钥</label>
  1541. <div class="col-md-7">
  1542. <div class="input-group">
  1543. <input type="text" class="form-control" id="codepay_key"
  1544. value="{{$codepay_key}}"/>
  1545. <span class="input-group-append">
  1546. <button class="btn btn-primary"
  1547. type="button"
  1548. onclick="update('codepay_key')">修改
  1549. </button>
  1550. </span>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <div class="row pb-70">
  1557. <div class="form-group col-lg-6">
  1558. <div class="row">
  1559. <label class="col-md-3 col-form-label">PayJs</label>
  1560. <div class="col-md-7">
  1561. 请到 <a href="https://payjs.cn/" target="_blank">PayJs</a> 申请账号
  1562. </div>
  1563. </div>
  1564. </div>
  1565. <div class="form-group col-lg-6">
  1566. <div class="row">
  1567. <label class="col-md-3 col-form-label" for="payjs_mch_id">商户ID</label>
  1568. <div class="col-md-7">
  1569. <div class="input-group">
  1570. <input type="text" class="form-control" id="payjs_mch_id"
  1571. value="{{$payjs_mch_id}}"/>
  1572. <span class="input-group-append">
  1573. <button class="btn btn-primary"
  1574. type="button"
  1575. onclick="update('payjs_mch_id')">修改
  1576. </button>
  1577. </span>
  1578. </div>
  1579. </div>
  1580. </div>
  1581. </div>
  1582. <div class="form-group col-lg-6">
  1583. <div class="row">
  1584. <label class="col-md-3 col-form-label" for="payjs_key">密钥</label>
  1585. <div class="col-md-7">
  1586. <div class="input-group">
  1587. <input type="text" class="form-control" id="payjs_key"
  1588. value="{{$payjs_key}}"/>
  1589. <span class="input-group-append">
  1590. <button class="btn btn-primary"
  1591. type="button"
  1592. onclick="update('payjs_key')">修改
  1593. </button>
  1594. </span>
  1595. </div>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. </div>
  1600. <div class="row pb-70">
  1601. <div class="form-group col-lg-6">
  1602. <div class="row">
  1603. <label class="col-md-3 col-form-label">麻瓜宝 MugglePay</label>
  1604. <div class="col-md-7">
  1605. 请到 <a
  1606. href="https://merchants.mugglepay.com/user/register?ref=MP904BEBB79FE0"
  1607. target="_blank">麻瓜宝 MugglePay</a> 申请账号
  1608. </div>
  1609. </div>
  1610. </div>
  1611. <div class="form-group col-lg-6">
  1612. <div class="row">
  1613. <label class="col-md-3 col-form-label" for="bitpay_secret">应用密钥</label>
  1614. <div class="col-md-7">
  1615. <div class="input-group">
  1616. <input type="text" class="form-control" id="bitpay_secret"
  1617. value="{{$bitpay_secret}}"/>
  1618. <span class="input-group-append">
  1619. <button class="btn btn-primary"
  1620. type="button"
  1621. onclick="update('bitpay_secret')">修改
  1622. </button>
  1623. </span>
  1624. </div>
  1625. </div>
  1626. <span class="text-help offset-md-3">在<a
  1627. href="https://merchants.mugglepay.com/basic/api" target="_blank">API设置</a>中获取后台服务器的秘钥
  1628. </span>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div class="row pb-70">
  1633. <div class="form-group col-lg-6">
  1634. <div class="row">
  1635. <label class="col-md-3 col-form-label">PayPal</label>
  1636. <div class="col-md-7">
  1637. 使用商家账号登录<a
  1638. href="https://www.paypal.com/businessprofile/mytools/apiaccess/firstparty"
  1639. target="_blank">API凭证申请页</a>, 同意并获取设置信息
  1640. </div>
  1641. </div>
  1642. </div>
  1643. <div class="form-group col-lg-6">
  1644. <div class="row">
  1645. <label class="col-md-3 col-form-label" for="paypal_username">API用户名</label>
  1646. <div class="col-md-7">
  1647. <div class="input-group">
  1648. <input type="text" class="form-control" id="paypal_username"
  1649. value="{{$paypal_username}}"/>
  1650. <span class="input-group-append">
  1651. <button class="btn btn-primary"
  1652. type="button"
  1653. onclick="update('paypal_username')">修改
  1654. </button>
  1655. </span>
  1656. </div>
  1657. </div>
  1658. </div>
  1659. </div>
  1660. <div class="form-group col-lg-6">
  1661. <div class="row">
  1662. <label class="col-md-3 col-form-label" for="paypal_password">API密码</label>
  1663. <div class="col-md-7">
  1664. <div class="input-group">
  1665. <input type="text" class="form-control" id="paypal_password"
  1666. value="{{$paypal_password}}"/>
  1667. <span class="input-group-append">
  1668. <button class="btn btn-primary"
  1669. type="button"
  1670. onclick="update('paypal_password')">修改
  1671. </button>
  1672. </span>
  1673. </div>
  1674. </div>
  1675. </div>
  1676. </div>
  1677. <div class="form-group col-lg-6">
  1678. <div class="row">
  1679. <label class="col-md-3 col-form-label" for="paypal_secret">签名</label>
  1680. <div class="col-md-7">
  1681. <div class="input-group">
  1682. <input type="text" class="form-control" id="paypal_secret"
  1683. value="{{$paypal_secret}}"/>
  1684. <span class="input-group-append">
  1685. <button class="btn btn-primary"
  1686. type="button"
  1687. onclick="update('paypal_secret')">修改
  1688. </button>
  1689. </span>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div class="form-group col-lg-6" hidden>
  1695. <div class="row">
  1696. <label class="col-md-3 col-form-label" for="paypal_certificate">证书</label>
  1697. <div class="col-md-7">
  1698. <div class="input-group">
  1699. <input type="text" class="form-control" id="paypal_certificate"
  1700. value="{{$paypal_certificate}}"/>
  1701. <span class="input-group-append">
  1702. <button class="btn btn-primary"
  1703. type="button"
  1704. onclick="update('paypal_certificate')">修改
  1705. </button>
  1706. </span>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. <div class="form-group col-lg-6" hidden>
  1712. <div class="row">
  1713. <label class="col-md-3 col-form-label" for="paypal_app_id">应用ID</label>
  1714. <div class="col-md-7">
  1715. <div class="input-group">
  1716. <input type="text" class="form-control" id="paypal_app_id"
  1717. value="{{$paypal_app_id}}"/>
  1718. <span class="input-group-append">
  1719. <button class="btn btn-primary"
  1720. type="button"
  1721. onclick="update('paypal_app_id')">修改
  1722. </button>
  1723. </span>
  1724. </div>
  1725. </div>
  1726. </div>
  1727. </div>
  1728. </div>
  1729. </form>
  1730. </div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. </div>
  1735. </div>
  1736. @endsection
  1737. @section('script')
  1738. <script src="/assets/global/vendor/matchheight/jquery.matchHeight-min.js" type="text/javascript"></script>
  1739. <script src="/assets/global/vendor/bootstrap-select/bootstrap-select.min.js" type="text/javascript"></script>
  1740. <script src="/assets/global/vendor/switchery/switchery.min.js" type="text/javascript"></script>
  1741. <script src="/assets/global/vendor/dropify/dropify.min.js" type="text/javascript"></script>
  1742. <script src="/assets/global/js/Plugin/bootstrap-select.js" type="text/javascript"></script>
  1743. <script src="/assets/global/js/Plugin/switchery.js" type="text/javascript"></script>
  1744. <script src="/assets/global/js/Plugin/responsive-tabs.js" type="text/javascript"></script>
  1745. <script src="/assets/global/js/Plugin/tabs.js" type="text/javascript"></script>
  1746. <script src="/assets/custom/jump-tab.js" type="text/javascript"></script>
  1747. <script src="/assets/global/js/Plugin/dropify.js" type="text/javascript"></script>
  1748. <script type="text/javascript">
  1749. $(document).ready(function () {
  1750. $('#is_invite_register').selectpicker('val', {{$is_invite_register}});
  1751. $('#is_activate_account').selectpicker('val', {{$is_activate_account}});
  1752. $('#is_captcha').selectpicker('val', {{$is_captcha}});
  1753. $('#referral_type').selectpicker('val', {{$referral_type}});
  1754. $('#is_email_filtering').selectpicker('val', {{$is_email_filtering}});
  1755. $('#is_notification').selectpicker('val', '{{$is_notification}}');
  1756. $('#is_AliPay').selectpicker('val', '{{$is_AliPay}}');
  1757. $('#is_QQPay').selectpicker('val', '{{$is_QQPay}}');
  1758. $('#is_WeChatPay').selectpicker('val', '{{$is_WeChatPay}}');
  1759. $('#is_otherPay').selectpicker('val', '{{$is_otherPay}}');
  1760. });
  1761. // 系统设置更新
  1762. function systemUpdate(systemItem, value) {
  1763. $.post("/admin/setConfig", {_token: '{{csrf_token()}}', name: systemItem, value: value}, function (ret) {
  1764. if (ret.status === 'success') {
  1765. swal.fire({title: ret.message, type: 'success', timer: 1500, showConfirmButton: false});
  1766. } else {
  1767. swal.fire({title: ret.message, type: 'error'}).then(() => window.location.reload());
  1768. }
  1769. });
  1770. }
  1771. // 正常input更新
  1772. function update(systemItem) {
  1773. systemUpdate(systemItem, $('#' + systemItem).val());
  1774. }
  1775. // 需要检查限制的更新
  1776. function updateFromInput(systemItem, lowerBound, upperBound) {
  1777. let value = parseInt($('#' + systemItem).val());
  1778. if (lowerBound !== false && value < lowerBound) {
  1779. swal.fire({title: '不能小于' + lowerBound, type: 'warning', timer: 1500, showConfirmButton: false});
  1780. } else if (upperBound !== false && value > upperBound) {
  1781. swal.fire({title: '不能大于' + upperBound, type: 'warning', timer: 1500, showConfirmButton: false});
  1782. } else {
  1783. systemUpdate(systemItem, value);
  1784. }
  1785. }
  1786. // 其他项更新选择
  1787. function updateFromOther(inputType, systemItem) {
  1788. let input = $('#' + systemItem);
  1789. switch (inputType) {
  1790. case 'select':
  1791. input.on("changed.bs.select", function () {
  1792. systemUpdate(systemItem, $(this).val());
  1793. });
  1794. break;
  1795. case 'multiSelect':
  1796. input.on("changed.bs.select", function () {
  1797. systemUpdate(systemItem, $(this).val().join(','));
  1798. });
  1799. break;
  1800. case 'switch':
  1801. systemUpdate(systemItem, document.getElementById(systemItem).checked ? 1 : 0);
  1802. break;
  1803. default:
  1804. break;
  1805. }
  1806. }
  1807. // 发送Bark测试消息
  1808. function sendTestNotification() {
  1809. $.post("/admin/sendTestNotification", {_token: '{{csrf_token()}}'}, function (ret) {
  1810. if (ret.status === 'success') {
  1811. swal.fire({title: ret.message, type: 'success', timer: 1500, showConfirmButton: false});
  1812. } else {
  1813. swal.fire({title: ret.message, type: 'error'});
  1814. }
  1815. });
  1816. }
  1817. // 生成网站安全码
  1818. function makeWebsiteSecurityCode() {
  1819. $.get("/makeSecurityCode", function (ret) {
  1820. $("#website_security_code").val(ret);
  1821. });
  1822. }
  1823. </script>
  1824. @endsection