App/Wap/Controller/ShowController.class.php

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
namespace Wap\Controller;
use Think\Controller;
use Think\Model;
class ShowController extends Controller {	
public $wxuser = array();
public function _initialize(){

}

    
public function index()
{
	//获取活动ID;
	$hdid = I('get.hdid');
	$news = M('Huodong')->getById($hdid);
	$news['jssj'] = strtotime($news['jssj']);
	$news['kssj'] = strtotime($news['kssj']);
	//处理样式表;	
	$news['style'] = unserialize($news['style']);
/*	$style['top']=I('post.image');
	$style['button']=I('post.image1');
	$style['end']=I('post.image2');
	$style['color']=I('post.image3');
	$style['fx']=I('post.image4');
	$style['title']=I('post.image5');*/
	
	$this->assign('news',$news);
	$this->assign('hdid',$hdid);

	// js分享功能数据;
	$weixin =M('weixin')->getById(910); 
	$signPackage=D('Admin', 'Service')->GetSignPackage(910,$weixin);	
	if(!$signPackage['nonceStr']){		
			$signPackage=D('Admin', 'Service')->GetSignPackage(910,$weixin,1);	
		}//判断是否读取到 读不到强制更新第三个参数为强制更新开关
	
	$this->assign('signPackage',$signPackage);

	$this->display(T('Show/index'));
}


public function weixinadd(){

	$hdid = I('post.hdid');
		//$is_add = I('post.is_add'); // 判断微信用户是否提交用户信息;
	$name = I('post.name');
	$tel = I('post.tel');
	$id=I('post.id'); 
	$record=I('post.record'); 
	$zlb=I('post.zlb'); 
		//判断用户是否已经参加活动;
	$Model = new Model();
	$wx_has_in = $Model->query("select * from __PREFIX__zhuli where hdid = '$hdid' and uid = '$id' order by zlb desc");
	if(empty($wx_has_in))
	{			
		//更新用户信息,填写用户姓名和手机号;
		$User = M("Wxuser"); // 实例化User对象
		// 要修改的数据对象属性赋值
后面还有 301 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。