'1','info'=>'无id','list'=>'fail')); } $sql = "update wechat_customer set cancel_flag =1 where id =".$id; writeLog($sql); $rs = $pdo->query($sql); if($rs){ echo json_encode(array('code'=>'0','info'=>'0','list'=>'success')); }else{ echo json_encode(array('code'=>'0','info'=>'','list'=>'fail')); }