Commit fe301978 by doszhang

dos

parent c7af7126
......@@ -125,13 +125,14 @@ class IndexController extends Controller
if (empty($req_type)) {
return false;
}
$prize = M('prize')->where(array(
$p = M('prize');
$prize = $p->where(array(
'is_get' => 0,
'user_id' => 0,
'type' => array('in', $req_type),
))->order('rand()')->limit(1)->find();
print_r($prize);die();
print_r($p->getLastsql());die();
if (!$prize) {
return false;
}
......
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 sign in to comment