table_wbw_block.php 808 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_USER_WBW_,
  7. "table" => _TABLE_USER_WBW_BLOCK_,
  8. "uuid" => "id",
  9. "sync_id" => ["id"],
  10. "modify_time" => "modify_time",
  11. "receive_time" => "receive_time",
  12. "where"=>" and ( (channal IS NOT NULL) or channal <> '') ",
  13. "insert" => [
  14. 'id',
  15. 'parent_id',
  16. 'channal',
  17. 'owner',
  18. 'book',
  19. 'paragraph',
  20. 'style',
  21. 'lang',
  22. 'status',
  23. 'receive_time',
  24. 'modify_time'
  25. ],
  26. "update" => [
  27. 'parent_id',
  28. 'channal',
  29. 'owner',
  30. 'book',
  31. 'paragraph',
  32. 'style',
  33. 'lang',
  34. 'status',
  35. 'modify_time'
  36. ]
  37. ];
  38. $result = do_sync($input);
  39. echo json_encode($result, JSON_UNESCAPED_UNICODE);
  40. ?>