人人商城

diagnose.html 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {template 'common/header'}
  2. <div class="form-horizontal" id="js-cloud-diagnose" ng-controller="CloudDiagnoseCtrl" ng-cloak>
  3. <h5 class="page-header">云服务状态诊断</h5>
  4. <div class="form-group">
  5. <label class="col-sm-2 control-label">站点URL</label>
  6. <div class="col-sm-10">
  7. <p class="form-control-static">{$_W['siteroot']}</p>
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label">站点ID</label>
  12. <div class="col-sm-10">
  13. <p class="form-control-static">{$_W['setting']['site']['key']}</p>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">通信密钥</label>
  18. <div class="col-sm-10">
  19. <p class="form-control-static">{php echo substr($_W['setting']['site']['token'], 0, 5) . '*****' . substr($_W['setting']['site']['token'], -5, 5);}</p>
  20. <div class="help-block">
  21. <a href="javascript:;" class="color-default" ng-click="showToken()">查看全部</a>&nbsp;&nbsp;
  22. <input type="hidden" value="{$_W['setting']['site']['token']}" id="token" />
  23. </div>
  24. <div class="help-block">请查看您的站点ID和通信密钥, 需要保证与<a href="{php echo url('cloud/profile');}">云服务平台记录</a>的值一致, 否则不能正常使用云平台的各项服务. </div>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-sm-2 control-label">系统版本</label>
  29. <div class="col-sm-10">
  30. <p class="form-control-static">WeEngine{php echo IMS_VERSION}{php echo IMS_FAMILY} (Release {php echo IMS_RELEASE_DATE})</p>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <div class="col-sm-2"></div>
  35. <div class="col-sm-10">
  36. <form action="" method="post" role="form" onsubmit="return confirm('如果您的系统没有发生云服务链接异常, 请不要使用重置功能.');">
  37. <input type="submit" name="submit" value="重置站点ID和通信密钥" class="btn btn-primary" />
  38. <input type="hidden" name="token" value="{$_W['token']}" />
  39. </form>
  40. <div class="help-block">如果您的站点ID和通信密钥与您绑定的站点信息中的记录不一致, 或访问云服务失败并多次重试后无效时. 请点击重置按钮, 重新注册您的站点信息(如果需要使用相同的微擎论坛账号绑定, 需要先在云服务后台中解除绑定) </div>
  41. </div>
  42. </div>
  43. <h5 class="page-header">云服务网络诊断</h5>
  44. <div class="form-group">
  45. <label class="col-sm-2 control-label">服务器时间检查</label>
  46. <div class="col-sm-10">
  47. <p class="form-control-static" id="check-time">检测中...</p>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label">DNS解析函数</label>
  52. <div class="col-sm-10">
  53. <p class="form-control-static">{if function_exists('gethostbyname')}<i class="fa fa-check text-success"></i> 正常{else}<i class="fa fa-remove text-warning"></i> 异常{/if}</p>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="col-sm-2 control-label">云平台域名解析</label>
  58. <div class="col-sm-10 js-checkip">
  59. {loop $checkips $index $ip}
  60. <p class="form-control-static">云节点{php echo $index+1;}:<span id="serverdnsip">{$ip}</span>; 速率测试:<span class="form-control-static" id="checkresult">检测中...</span></p>
  61. {/loop}
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="col-sm-2 control-label">绑定云服务接口IP</label>
  66. <div class="col-sm-10">
  67. <p class="form-control-static">{if !empty($_W['setting']['cloudip'])}自定义接口IP:{$_W['setting']['cloudip']['ip']}{/if}&nbsp;&nbsp;<a href="javascript:;" class="color-default" data-toggle="modal" data-target="#set-server-ip">设置接口IP</a></p>
  68. </div>
  69. </div>
  70. <!--<div class="form-group">
  71. <label class="col-sm-2 control-label">云平台到站点测试</label>
  72. <div class="col-sm-10">
  73. <p class="form-control-static" id="check-touch">检测中...</p>
  74. </div>
  75. </div>-->
  76. </div>
  77. <form method="post">
  78. <div class="modal fade in form-horizontal" id="set-server-ip" tabindex="-1" role="dialog" aria-hidden="false">
  79. <div class="modal-dialog">
  80. <div class="modal-content">
  81. <div class="modal-header">
  82. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  83. <h4 class="modal-title">设置云服务ip地址</h4>
  84. </div>
  85. <div class="modal-body">
  86. <div class="form-group">
  87. <label class="control-label col-xs-3">云服务ip</label>
  88. <div class="col-xs-9">
  89. <input type="text" class="form-control" name="ip" value="{$_W['setting']['cloudip']['ip']}" />
  90. <span class="help-block">如果您解析的云服务ip异常,可以在此手动设置</span>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="modal-footer">
  95. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  96. <button type="submit" class="btn btn-primary" name="updateserverip" value="ok">确认</button>
  97. <input type="hidden" name="token" value="{$_W['token']}" />
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </form>
  103. <script>
  104. angular.module('cloudApp').value('config', {
  105. version: "{php echo IMS_VERSION}",
  106. siteurl: "{php echo $_W['siteroot']}",
  107. date: {php echo $_W['timestamp']},
  108. });
  109. angular.bootstrap($('#js-cloud-diagnose'), ['cloudApp']);
  110. </script>
  111. {template 'common/footer'}