[更新]修改微信支付demo

This commit is contained in:
邹景立 2017-04-17 18:08:42 +08:00
parent 4fcd6d948a
commit 6e2c976bb7
2 changed files with 2 additions and 4 deletions

View File

@ -96,7 +96,7 @@
<div class="layui-input-block">
<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px" src="{:sysconf('site_logo')}"/>
<input type="hidden" onchange="$(this).prev('img').attr('src', this.value)" name="site_logo" value="{:sysconf('site_logo')}" class="layui-input">
<a class="btn btn-link" data-file="one" data-type="jpg,png,gif" data-field="site_logo">上传图片</a>
<a class="btn btn-link" data-file="one" data-uptype="qiniu" data-type="jpg,png,gif" data-field="site_logo">上传图片</a>
</div>
<div class="layui-form-mid layui-word-aux">
建议LOGO图片的尺寸为160x56px此LOGO图片用于后台登陆页面。

View File

@ -14,9 +14,8 @@
use app\admin\model\NodeModel;
use think\Config;
use think\Db;
use Wechat\Loader;
use think\Db;
/**
* 打印输出数据到文件
@ -50,7 +49,6 @@ function & load_wechat($type = '') {
'ssl_key' => sysconf('wechat_cert_key'),
'cachepath' => CACHE_PATH . 'wxpay' . DS,
];
$config['cachepath'] = CACHE_PATH . 'wechat' . DS;
$wechat[$index] = &Loader::get($type, $config);
}
return $wechat[$index];