zxhxx 4 년 전
부모
커밋
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('已有用户预约,换个商品预约');
         }