Browse Source

频道删除

zqwang 1 year ago
parent
commit
8c25b2e689
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/Operation/Service/ChannelServic.php

+ 1 - 1
modules/Operation/Service/ChannelServic.php

@@ -99,7 +99,7 @@ class ChannelServic extends BaseService
         if(is_empty($info)){
         if(is_empty($info)){
             self::throwErrMsg("频道配置不存在");
             self::throwErrMsg("频道配置不存在");
         }
         }
-        if ($info->status = 1){
+        if ($info->status == 1){
             self::throwErrMsg("请先禁用");
             self::throwErrMsg("请先禁用");
         }
         }
         $res = NavPages::where('id',$id)->update(['is_del' =>1,'del_at' => get_date(),'status' => 0]);
         $res = NavPages::where('id',$id)->update(['is_del' =>1,'del_at' => get_date(),'status' => 0]);