|
@@ -131,13 +131,9 @@ class ReserveController extends MoonClubBaseController
|
|
|
CommonFn::requestAjax(false,CommonFn::getMessage('user','id_not_exist'));
|
|
|
die();
|
|
|
}
|
|
|
- echo $user_id;exit;
|
|
|
- $criteria->user('==',new MongoId($user_id));
|
|
|
+ $criteria->addCond(user,'==',new MongoId($user_id));
|
|
|
$cursor = Reserve::model()->findAll($criteria);
|
|
|
if (count($cursor) >= 1){
|
|
|
- foreach ($cursor as $k => $v) {
|
|
|
- var_dump($v);
|
|
|
- }exit;
|
|
|
CommonFn::requestAjax(true,'您已经提交过信息',$cursor);
|
|
|
exit;
|
|
|
}
|