Commit 60f4ad41 by 冷斌

fix bug

parent c2e01520
...@@ -26,7 +26,7 @@ class SingleAction extends CommonAction { ...@@ -26,7 +26,7 @@ class SingleAction extends CommonAction {
if( is_numeric( $id )) { if( is_numeric( $id )) {
$map['id'] = $id; $map['id'] = $id;
} else { } else {
$map['key'] = $id; $map['key'] = $id;
} }
$res = M('single')->where($map)->find(); $res = M('single')->where($map)->find();
...@@ -35,7 +35,7 @@ class SingleAction extends CommonAction { ...@@ -35,7 +35,7 @@ class SingleAction extends CommonAction {
$map['key'] = $id; $map['key'] = $id;
$res = M('single')->where($map)->find(); $res = M('single')->where($map)->find();
} }
$this->assign('data' , $res); $this->assign('data' , $res);
$this->display(); $this->display();
} }
...@@ -47,4 +47,9 @@ class SingleAction extends CommonAction { ...@@ -47,4 +47,9 @@ class SingleAction extends CommonAction {
$this->display(); $this->display();
} }
} public function buy()
\ No newline at end of file {
echo 1; die;
}
}
...@@ -134,6 +134,7 @@ return array( ...@@ -134,6 +134,7 @@ return array(
//单页 //单页
'basic/Single/info' => SITE_URL.'/single/[id].html', 'basic/Single/info' => SITE_URL.'/single/[id].html',
'basic/Single/indie' => SITE_URL.'/indie/[ie].html', 'basic/Single/indie' => SITE_URL.'/indie/[ie].html',
'basic/Single/buy' => SITE_URL.'/single/buy.html',
//app下载 //app下载
'home/Index/appdownload' => SITE_URL.'/appdownload.html', 'home/Index/appdownload' => SITE_URL.'/appdownload.html',
......
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