|
- <?php
- //获取id值
- header("Access-Control-Allow-Origin:*");
- $post = $_POST['id'];
- $num = explode(",",$post);
-
- if(count($num) == 1){
- $sql = "update opera_line set IF_DISABLED = 0 where LINE_ID = $post";
- }else{
- $sql = "update opera_line set IF_DISABLED = 0 where LINE_ID in ($post)";
- }
-
- $result=$pdo->exec($sql);
- if($result){
- $code = 0;
- $info = 'success';
- $massge = '成功';
- }else{
- $code = -1;
- $info = 'fail';
- $massge = '失败';
- }
- $json['code'] = $code;
- $json['info'] = $info;
- $json['massge'] = $massge;
-
- echo json_encode($json);
-
- ?>
|