|
@@ -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","更新失败");
|
|
|
}
|
|
|
//新建脚本数据
|