Application/Wap/Controller/IndexController.class.php
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Wap\Controller;
use Think\Controller;
class IndexController extends CommonController {
public function index(){
$userid = session('userid');
//$user = M('user')->where("id=%d",$userid)->find();
//$this->user = $user;
//获取系统配置
$sysconfig = M('sys_config')->cache(true,300)->field('ckefujs,cyjbangshou,cwebtitle,ctzxinrenjin')->find();
$this->sysconfig = $sysconfig;
//虚拟用户打卡,自动结算
$SysAuto = new \Common\Myfun\SysAuto();
$SysAuto->auto_daka_total();
$SysAuto->AutoDaka();
$SysAuto->Auto_kou_weidaka();
$SysAuto->AutoJiesuan();
$this->daka_total = $SysAuto->auto_daka_total();
//根据时间判断样式
if(date('H') >=6 && date('H') < 19 ){
$indexcss['headbg'] = 'index_index_abg';
$indexcss['dog'] = 'cleardog';
} else {
$indexcss['dog'] = 'sleepdog';
$indexcss['csshidden'] = 'csshidden';
}
$this->indexcss = $indexcss;
//判断是否可追加挑战金
$user_zhanghu = M('user_zhanghu')->where("userid=%d",$userid)->field('udakatime,uxintiaozhane,utiaozhane,ukastate')->find();
if($user_zhanghu['ukastate'] == 3){
$PayAction = new \Common\Myfun\PayAction($userid);
if($PayAction->ChongCheck() == 5){
$this->zhuijiashow = 'cssshow';
}
}
//判断新人礼包
if($user_zhanghu['udakatime'] == 0 && $user_zhanghu['uxintiaozhane'] == 0 && $sysconfig['ctzxinrenjin'] > 0 ){
$this->libaocode = 2;
}
//分享设置
$wx = new \Common\Myfun\WxAction();
$this->SignPackage = $wx->fenxiang($userid);
//首页通知
$newstongzhi = M('news')->where("ntype=4")->getfield('ncontent');
$this->newstongzhi = $newstongzhi;
unset($newstongzhi);
//首页图标链接
$zuolinkhtml = "";
$youlinkhtml = "";
$homelink = M('link')->where("ltype=1")->order('lpaixu desc,id desc')->select();
foreach($homelink as $v){
$img = './Uploads/'.substr(date('Ymd',$v['ltime']),0,4).'/'.substr(date('Ymd',$v['ltime']),4,2).'/'.$v['limg'];
后面还有 89 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。