You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
581 B

  1. <?php
  2. $user_id = getUserId();
  3. $time = date('Y-m-d H:i:s',time());
  4. $channel_id= trim($_POST['channel_id']);
  5. $play = trim($_POST['play']);
  6. if($play == 'stop')
  7. {
  8. $is_disabled = 1;
  9. }
  10. else
  11. {
  12. $is_disabled = 0;
  13. }
  14. $sql = "UPDATE base_supplier
  15. SET update_user_id = " . $user_id . ",update_time = '" . $time . "',is_disabled = " . $is_disabled . "
  16. WHERE
  17. id in(" . $channel_id . ")";
  18. writeLog("update status base_supplier:" . $sql);
  19. $result = $pdo->exec($sql);
  20. $json['code'] = '0';
  21. $json['info'] = '修改成功';
  22. echo json_encode($json);
  23. exit();
  24. ?>