table_term.php 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. //header('Content-type: application/json; charset=utf8');
  3. require_once "../path.php";
  4. require_once "../sync/function.php";
  5. $input = (object) [
  6. "database" => _FILE_DB_TERM_,
  7. "table" => "term",
  8. "uuid" => "guid",
  9. "modify_time" => "modify_time",
  10. "receive_time" => "receive_time",
  11. "insert" => [
  12. 'guid',
  13. 'word',
  14. 'word_en',
  15. 'meaning',
  16. 'other_meaning',
  17. 'note',
  18. 'tag',
  19. 'create_time',
  20. 'owner',
  21. 'hit',
  22. 'language',
  23. 'receive_time',
  24. 'modify_time'
  25. ],
  26. "update" => [
  27. "word",
  28. "word_en",
  29. "meaning",
  30. "other_meaning",
  31. "note",
  32. "tag",
  33. "owner",
  34. "hit",
  35. "language",
  36. "create_time",
  37. "modify_time",
  38. "receive_time"
  39. ]
  40. ];
  41. $result = do_sync($input);
  42. echo json_encode($result, JSON_UNESCAPED_UNICODE);
  43. ?>