wugg 2 years ago
parent
commit
3184db31ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Exec.php

+ 1 - 1
app/admin/controller/Exec.php

@@ -73,7 +73,7 @@ class Exec extends \app\admin\BaseController{
 		 if($log['is_del']==1) return error_show(1004,"脚本已删除");
 		 if($log['status']==$param['status']) return error_show(1004,"脚本状态已更新");
 		 if($log['action']==''&&$param['status']==1 ) return error_show(1004,'后端脚本还未上线');
-		 $del=Db::name("exec")->where(["id",$param['id']])->update(["status"=>$param['status'],"updatetime"=>date("Y-m-d H:i:s")]);
+		 $del=Db::name("exec")->where(["id"=>$param['id']])->update(["status"=>$param['status'],"updatetime"=>date("Y-m-d H:i:s")]);
 		 return $del? app_show("0","更新成功"):app_show("1004","更新失败");
 	}
 	//新建脚本数据