north 8 years ago
parent
commit
655f6b75bc
1 changed files with 1 additions and 5 deletions
  1. 1 5
      www/protected/modules/moonclub/controllers/ReserveController.php

+ 1 - 5
www/protected/modules/moonclub/controllers/ReserveController.php

@@ -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;
         }