zxhxx 3 rokov pred
rodič
commit
0cf95e0203
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/models/store/Package.php

+ 1 - 1
app/models/store/Package.php

@@ -54,7 +54,7 @@ class Package extends BaseModel
                 cache('reserve_'.$uid,null);
                 return self::setErrorInfo('金豆不足,请先买金豆专区');
             }
-        if($last_id>0 && self::where('id',$last_id)->value('status')!=3) {
+        if($last_id>0 && self::where('id',$last_id)->value('status')==3) {
             cache('reserve_'.$uid,null);
             return self::setErrorInfo('已有用户预约,换个商品预约');
         }