Kaynağa Gözat

更改房间状态为正常

lizhen_gitee 1 yıl önce
ebeveyn
işleme
46b3c1dde2
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      application/api/controller/Party.php

+ 1 - 1
application/api/controller/Party.php

@@ -211,7 +211,7 @@ class Party extends Common
         $partyInfo->status = 1;
         $res = $partyInfo->save();
 
-        if($res) {
+        if($res !== false) {
             // 更新redis  加入缓存排序
             $redis = new Redis();
             $redisconfig = config("redis");