system.blade.php 81 KB

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