cxhxy/runtime/admin/temp/77d3402cf97c0a269213cffcfac5cd3c.php
test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

93 lines
13 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /*a:2:{s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/admin/view/open/wxopen.html";i:1700552721;s:69:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/admin/view/layout/layout.html";i:1700552721;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>管理后台 - <?php echo htmlentities($web['name']); ?></title>
<meta name="author" content="<?php echo htmlentities($web['name']); ?>">
<meta name="keywords" content="<?php echo htmlentities($web['keywords']); ?>">
<meta name="description" content="<?php echo htmlentities($web['description']); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="referrer" content="no-referrer-when-downgrade">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.css?v=<?php echo htmlentities($version); ?>" />
<link rel="stylesheet" href="/assets/css/hema.app.css?v=<?php echo htmlentities($version); ?>" />
<link rel="stylesheet" href="/addons/upload/css/file.library.css?v=<?php echo htmlentities($version); ?>" />
<link rel="stylesheet" href="/assets/plugins/iconfont/iconfont.css?v=<?php echo htmlentities($version); ?>">
<script src="/assets/plugins/jquery/jquery.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/iconfont/iconfont.js?v=<?php echo htmlentities($version); ?>"></script>
<script>
BASE_URL = '<?php echo isset($base_url) ? $base_url : ''; ?>';
STORE_URL = '<?php echo isset($store_url) ? $store_url : ''; ?>';
APPLET_ID = '<?php echo isset($applet_id) ? $applet_id : 0; ?>';
</script>
</head>
<body data-type="">
<div class="am-g tpl-g">
<!-- 头部 -->
<header class="tpl-header">
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-button switch-button"> <i class="iconfont iconzhedie"></i> </div>
<!-- 刷新页面 -->
<div class="am-fl tpl-header-button refresh-button"> <i class="iconfont iconshuaxin"></i> </div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 当前版本 -->
<li class="am-text-sm">
<a href="javascript:void(0);" class="hemaphp-upgrade">
<small style="color:#ccc;">版本V<?php echo htmlentities($version); ?></small>
<?php if($is_new): ?>
<div class="news"></div>
<?php endif; ?>
</a>
</li>
<!-- 欢迎语 -->
<li class="am-text-sm">
<div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
<div class="am-topbar-btn am-dropdown-toggle" data-am-dropdown-toggle>
<img src="/assets/img/avatar.png" />
<?php echo htmlentities((isset($user['user']['user_name']) && ($user['user']['user_name'] !== '')?$user['user']['user_name']:'')); ?>
<span class="am-icon-caret-down"></span>
</div>
<ul class="am-dropdown-content">
<li><a href="<?php echo url('passport/renew'); ?>">修改密码</a></li>
<li><a href="<?php echo url('passport/logout'); ?>">安全退出</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</header> <!-- 侧边导航栏 -->
<div class="left-sidebar dis-flex">
<?php $menus = $menus ?: []; $group = $group ?: 0; $second = isset($menus[$group]['submenu']) ? $menus[$group]['submenu'] : []?>
<!-- 一级菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">管理后台</li> <?php foreach($menus as $key=>$item): ?> <li
class="sidebar-nav-link"> <a
href="<?php echo isset($item['index']) ? url($item['index']) : 'javascript:void(0);'; ?>"
class="<?php echo !empty($item['active']) ? 'active' : ''; ?>"> <?php if((isset($item['is_svg']) && ($item['is_svg'] == true))): ?>
<svg class="icon sidebar-nav-link-logo" aria-hidden="true">
<use xlink:href="#<?php echo htmlentities($item['icon']); ?>"></use>
</svg> <?php else: ?> <i class="iconfont sidebar-nav-link-logo <?php echo htmlentities($item['icon']); ?>"
style="{isset($item.color) ? 'color:'.$item.color.';' : '' }"></i> <?php endif; ?> <?php echo htmlentities($item['name']); ?>
</a> </li> <?php endforeach; ?>
</ul> <!-- 子级菜单--> <?php if((sizeof($second) > 0)): ?> <ul class="left-sidebar-second">
<li class="sidebar-second-title"><?php echo htmlentities($menus[$group]['name']); ?></li>
<li class="sidebar-second-item"> <?php foreach($second as $key=>$item): if((!isset($item['submenu']))): ?>
<!-- 二级菜单--> <a href="<?php echo url($item['index']); ?>" class="<?php echo !empty($item['active']) ? 'active' : ''; ?>">
<?php echo htmlentities($item['name']); ?> </a> <?php else: ?>
<!-- 三级菜单-->
<div class="sidebar-third-item"> <a href="javascript:void(0);"
class="sidebar-nav-sub-title <?php echo !empty($item['active']) ? 'active' : ''; ?>"> <i
class="iconfont icongengduo"></i> <?php echo htmlentities($item['name']); ?> </a>
<ul class="sidebar-third-nav-sub"> <?php foreach($item['submenu'] as $third): ?> <li> <a
class="<?php echo !empty($third['active']) ? 'active' : ''; ?>" href="<?php echo url($third['index']); ?>">
<?php echo htmlentities($third['name']); ?> </a> </li> <?php endforeach; ?> </ul>
</div> <?php endif; ?> <?php endforeach; ?>
</li>
</ul> <?php endif; ?>
</div> <!-- 内容区域 start -->
<div class="tpl-content-wrapper <?php echo sizeof($second) == 0 ? 'no-sidebar-second' : ''; ?>"> <div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<form id="my-form" class="am-form tpl-form-line-form" method="post">
<div class="widget-body">
<fieldset>
<div class="widget-head am-cf">
<div class="widget-title am-fl">微信开放平台 - 第三方平台对接</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">通信状态 </label>
<div class="am-u-sm-9 am-u-end">
<div class="am-btn-group am-btn-group-xs">
<span class="am-btn am-radius <?php echo !empty($model['status']['value']) ? 'am-btn-success' : 'am-btn-default'; ?>">
<span class="am-icon-mixcloud am-icon-sm"> </span> <?php echo htmlentities($model['status']['text']); ?>
</span>
<small style="margin-left:20px;">每10分钟更新一次</small>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> AppID </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[app_id]"
value="<?php echo htmlentities($model['app_id']); ?>" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> AppSecret </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[app_secret]"
value="<?php echo htmlentities($model['app_secret']); ?>" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 消息校验Token </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[token]"
value="<?php echo htmlentities($model['token']); ?>" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 消息加解密Key </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[encoding_aes_key]"
value="<?php echo htmlentities($model['encoding_aes_key']); ?>" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">服务器域名 </label>
<div class="am-u-sm-9 am-u-end">
<textarea class="" rows="3" placeholder="请输入服务器域名"
name="data[api_domain]"><?php echo htmlentities($model['api_domain']); ?></textarea>
<small>
建议设置多个,多个以为“;”号隔开。<br>
第一个为主域名请确保SSL证书配置正常其它为备用。<br>
第一个域名SSL证书过期后请删除启用第二个做好配置以此类推。<br>
域名前请勿输入http等协议头。
</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 授权发起页域名 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[authorize_domain]"
value="<?php echo htmlentities($model['authorize_domain']); ?>" required>
<small>域名格式例如www.baidu.com</small>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">提交
</button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#my-form').formPost();
});
</script>
</div>
<!-- 内容区域 end -->
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="addons-loading"></div>
</div>
<script src="/assets/plugins/vue/vue.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/layer/layer.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/jquery/jquery.form.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/amazeui/amazeui.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/js/hema.app.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/js/webuploader.html5only.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/js/art-template.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/addons/upload/js/file.library.js?v=<?php echo htmlentities($version); ?>"></script>
<script>
$(function() {
// 状态操作
$('.hemaphp-upgrade').click(function () {
var is_new = '<?php echo htmlentities($is_new); ?>';
if(is_new){
layer.confirm('您确定要进行升级?', {
title: '友情提示',
icon: 0,
btn:['取消','确定'],
skin: 'layui-layer-hema',
cancel : function(){
// 你点击右上角 X 回调
},
btn1:function(index,layero){
layer.close(index);
},
btn2:function(index){
$("#addons-loading").html('<div class="am-modal-dialog"><div class="am-modal-hd">系统升级中,请等待...</div><div class="am-modal-bd"><span class="am-icon-spinner am-icon-spin"></span></div></div>');
$("#addons-loading").modal('open');
$.post('/admin/addon/hemaphpUpgrade', {}, function (result) {
$("#addons-loading").modal('close');
if(typeof(result) == 'string'){
result = JSON.parse(result);
}
result.code === 1 ? $.show_success(result.msg, result.url) : $.show_error(result.msg);
});
layer.close(index);
},
end:function() {
//所有操作都会执行
}
});
return true;
}
$.show_error('已是最新版本');
});
});
</script>
</body>
</html>