Application/Wap/Controller/TouziController.class.php
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Wap\Controller;
use Think\Controller;
class TouziController extends CommonController {
public function index(){
$news = M('news')->where("ntype=8")->find();
$this->news = $news;
$touzi = M('touzi_set')->order('tjine asc,id asc')->select();
foreach($touzi as $k => $v){
$touzi[$k]['rishouyi'] = $v['tjine'] * $v['tshouyi'] * 0.01 * 0.01;
}
$this->touzi = $touzi;
$this->display();
}
public function chongzhi(){
$danhao = I('danhao','');
$userid = session('userid');
//判断用户来源-注册用户不使用微信支付
$sysconfig = M('sys_config')->cache(true,60)->field('cwebtitle,cwxname,cwxpaycode,calipaycode,czhzhpay')->find();
if( !check_is_weixin() ){
$sysconfig['cwxpaycode'] = 2;
}
$this->sysconfig = $sysconfig;
if($danhao != ''){
$paydanrow = M('user_tzchongzhi')->where("userid=%d and ddanhao='%s'",$userid,$danhao)->find();
if($paydanrow){
if($paydanrow['dcode'] == 1){
$user_zhanghu = M('user_zhanghu')->where("userid=%d",$userid)->find();
$this->useryue = number_format($user_zhanghu['uketixian'] * 0.01,2);//账户余额
$this->paynum = number_format($paydanrow['djine'] * 0.01,2);//订单金额
$this->paynumform = $paydanrow['djine'];//订单金额
$this->danhao = $danhao;//单号
$this->display();
} else {
$this->redirect('index');
die;
}
} else {
$this->redirect('index');
die;
}
} else {
$id = I('id',0,'intval');
$touzi = M('touzi_set')->where("id = %d",$id)->find();
if($touzi){
$user_zhanghu = M('user_zhanghu')->where("userid=%d",$userid)->find();
$this->useryue = number_format($user_zhanghu['uketixian'] * 0.01,2);
$this->paynum = number_format($touzi['tjine'] * 0.01,2);
$this->paynumform = $touzi['tjine'];
$this->danhao = date("YmdHis") . rand(1000000, 9999999);
$this->display();
} else {
$this->redirect('index');
后面还有 110 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。