作者 郭鑫

微信支付二维码

<?php
/**
* Created by PhpStorm.
* User: 29925
* Date: 2018/7/23
* Time: 14:32
*/
namespace api\portal\controller;
use cmf\controller\HomeBaseController;
class QrcodeController extends HomeBaseController
{
// 微信支付二维码
public function qrcode() {
$data = $this->request->param('data');
require_once VENDOR_PATH.'WxpayAPI/example/phpqrcode/phpqrcode.php';
$url = urldecode($data);
\QRcode::png($url);
}
}
\ No newline at end of file
... ...
... ... @@ -77,7 +77,7 @@ class AdminOauthController extends AdminBaseController
$this->assign('tel', $data['tel']);
}
}
$lists = Db::name('Member')->where($where_member)->order('status')->select()->toArray();
$lists = Db::name('Member')->where($where_member)->order('status,create_time desc')->select()->toArray();
foreach ($lists as $lk=>$lv){
$where_referee['id'] = $lv['referee_id'];
$referee = Db::name('Member')->where($where_referee)->field('id,name')->find();
... ...
... ... @@ -71,17 +71,17 @@
</tr>
<tr>
<th width="15%">首次登录时间</th>
<td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" />
<td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" readonly/>
</td>
</tr>
<tr>
<th width="15%">最后登录时间</th>
<td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" />
<td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" readonly/>
</td>
</tr>
<tr>
<th width="18%">注册时间</th>
<td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" />
<td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" readonly/>
</td>
</tr>
<tr>
... ...