table_channel.php 683 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. //header('Content-type: application/json; charset=utf8');
  3. require_once "../config.php";
  4. require_once "../sync/function.php";
  5. $input = (object) [
  6. "database" => _FILE_DB_CHANNAL_,
  7. "table" => "channal",
  8. "uuid" => "id",
  9. "sync_id" => ["id"],
  10. "where"=>"",
  11. "modify_time" => "modify_time",
  12. "receive_time" => "receive_time",
  13. "insert" => [
  14. 'id',
  15. 'owner',
  16. 'name',
  17. 'summary',
  18. 'status',
  19. 'lang',
  20. 'create_time',
  21. 'modify_time',
  22. 'receive_time'
  23. ],
  24. "update" => [
  25. 'owner',
  26. 'name',
  27. 'summary',
  28. 'status',
  29. 'lang',
  30. 'modify_time'
  31. ]
  32. ];
  33. $result = do_sync($input);
  34. echo json_encode($result, JSON_UNESCAPED_UNICODE);
  35. ?>