table_term_channel.php 956 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_TERM_,
  7. "table" => "term",
  8. "uuid" => "guid",
  9. "sync_id" => ["pali","tag","channal"],
  10. "modify_time" => "modify_time",
  11. "receive_time" => "receive_time",
  12. "where"=>" and ( (channal IS NOT NULL) or channal <> '') ",
  13. "insert" => [
  14. 'guid',
  15. 'word',
  16. 'word_en',
  17. 'meaning',
  18. 'other_meaning',
  19. 'note',
  20. 'tag',
  21. 'create_time',
  22. 'owner',
  23. 'hit',
  24. 'language',
  25. 'receive_time',
  26. 'modify_time'
  27. ],
  28. "update" => [
  29. "word",
  30. "word_en",
  31. "meaning",
  32. "other_meaning",
  33. "note",
  34. "tag",
  35. "owner",
  36. "hit",
  37. "language",
  38. "create_time",
  39. "modify_time",
  40. "receive_time"
  41. ]
  42. ];
  43. $result = do_sync($input);
  44. echo json_encode($result, JSON_UNESCAPED_UNICODE);
  45. ?>