Commit bb566301 authored by 章建武's avatar 章建武

dep

parent 46b2b441
......@@ -12,6 +12,13 @@ class IndexController extends Controller
}
public function index()
{
$this->display('index');
}
//生成图片
public function get_pic (){
session_start();
if (!$_SESSION["headimgurl"]) {
redirect('http://mallapp.guoguodz.com/test_h5/appwww/index.php/WxAuthorize');
......@@ -57,13 +64,6 @@ class IndexController extends Controller
$string = "jsapi_ticket=".$argu['jsapi_ticket']."&noncestr=".$argu['nonceStr']."&timestamp=".$argu['timestamp']."&url=".$argu['url'];
$argu['signature'] = sha1(trim($string));
$this->assign($argu);
$this->display('index');
}
//生成图片
public function get_pic (){
session_start();
$num = $_SESSION['num'] += 1;
$link = C('DOMAIN').STATIC_COMEON_ASSETS.'/images/zhutu.jpg';
//主图
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment