作者 郭鑫

微信支付二维码

  1 +<?php
  2 +/**
  3 + * Created by PhpStorm.
  4 + * User: 29925
  5 + * Date: 2018/7/23
  6 + * Time: 14:32
  7 + */
  8 +
  9 +namespace api\portal\controller;
  10 +
  11 +use cmf\controller\HomeBaseController;
  12 +
  13 +class QrcodeController extends HomeBaseController
  14 +{
  15 +
  16 + // 微信支付二维码
  17 + public function qrcode() {
  18 + $data = $this->request->param('data');
  19 + require_once VENDOR_PATH.'WxpayAPI/example/phpqrcode/phpqrcode.php';
  20 + $url = urldecode($data);
  21 + \QRcode::png($url);
  22 + }
  23 +
  24 +}
@@ -77,7 +77,7 @@ class AdminOauthController extends AdminBaseController @@ -77,7 +77,7 @@ class AdminOauthController extends AdminBaseController
77 $this->assign('tel', $data['tel']); 77 $this->assign('tel', $data['tel']);
78 } 78 }
79 } 79 }
80 - $lists = Db::name('Member')->where($where_member)->order('status')->select()->toArray(); 80 + $lists = Db::name('Member')->where($where_member)->order('status,create_time desc')->select()->toArray();
81 foreach ($lists as $lk=>$lv){ 81 foreach ($lists as $lk=>$lv){
82 $where_referee['id'] = $lv['referee_id']; 82 $where_referee['id'] = $lv['referee_id'];
83 $referee = Db::name('Member')->where($where_referee)->field('id,name')->find(); 83 $referee = Db::name('Member')->where($where_referee)->field('id,name')->find();
@@ -71,17 +71,17 @@ @@ -71,17 +71,17 @@
71 </tr> 71 </tr>
72 <tr> 72 <tr>
73 <th width="15%">首次登录时间</th> 73 <th width="15%">首次登录时间</th>
74 - <td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" /> 74 + <td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" readonly/>
75 </td> 75 </td>
76 </tr> 76 </tr>
77 <tr> 77 <tr>
78 <th width="15%">最后登录时间</th> 78 <th width="15%">最后登录时间</th>
79 - <td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" /> 79 + <td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" readonly/>
80 </td> 80 </td>
81 </tr> 81 </tr>
82 <tr> 82 <tr>
83 <th width="18%">注册时间</th> 83 <th width="18%">注册时间</th>
84 - <td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" /> 84 + <td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" readonly/>
85 </td> 85 </td>
86 </tr> 86 </tr>
87 <tr> 87 <tr>