zxhxx 3 年之前
父节点
当前提交
0cf95e0203
共有 1 个文件被更改,包括 1 次插入1 次删除
  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('已有用户预约,换个商品预约');
         }