Application/Admin/Controller/UserController.class.php
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Admin\Controller;
use Think\Controller;
class UserController extends CommonController {
public function index(){
$sci = I('sci','','trim');
if($sci != ''){
$whe['a.id'] = array('eq',intval(get_str_num($sci)));
$whe['a.uickname'] = array('like','%'.$sci.'%');
$whe['a.uopenid'] = array('like','%'.$sci.'%');
$whe['a.uphone'] = array('like','%'.$sci.'%');
$whe['_logic'] = 'or';
}
if(I('utype') == 1){
$whe['a.utype'] = array('eq',1);
$whe['b.ukastate'] = array('eq',3);
}
if(I('utype') == 2){
$whe['a.utype'] = array('eq',2);
}
if(I('ustate') == 2){
$whe['a.ustate'] = array('eq',2);
}
//if(!empty($whe)){
//$map['_complex'] = $whe;
//}
if(I('paixu') == 1){
$order = 'b.utiaozhane desc,a.id desc';
} else if(I('paixu') == 2) {
$order = 'b.utotaldays desc,a.id desc';
} else if(I('paixu') == 3 ) {
$order = 'b.uzhengzonge desc,a.id desc';
} else {
$order = 'a.id desc';
}
$count = M('user a')->join('__USER_ZHANGHU__ b on a.id=b.userid')->where($whe)->count();
$page = my_page($count,8);
$limit = $page->firstRow . ',' . $page->listRows;
$user = M('user a')->join('__USER_ZHANGHU__ b on a.id=b.userid')->where($whe)
->field('a.*,b.utiaozhane,b.uzhengzonge,b.udakadays,b.uxintiaozhane,b.utotaldays,b.uketixian,b.ukastate,b.udakatime')
->order($order)->limit($limit)->select();
$daytime = strtotime(date('Ymd'));
foreach($user as $k => $v){
if( $v['ukastate'] == 3 and $v['udakatime'] < $daytime){
$jilunum = M('user_tiaojilu')->where("userid=%d and tiaotime > %d",$v['id'],$daytime)->count();
$user[$k]['jilunum'] = $jilunum;
}
}
$page->parameter['sci'] = I('sci');
$this->sci = I('sci');
$this->page = $page->show();
$this->user = $user;
$this->display();
}
public function shibai(){
后面还有 459 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。