|
@@ -12,7 +12,7 @@
|
|
|
|
|
|
// 异步请求数据
|
|
// 异步请求数据
|
|
$.ajax({
|
|
$.ajax({
|
|
- url: `https://api.tianyunperfect.cn/excalidraw/get_by_id?id=${a}`,
|
|
|
|
|
|
+ url: `https://php.tianyunperfect.cn/controller/excalidraw.php?action=get_by_id&id=${a}`,
|
|
method: 'GET',
|
|
method: 'GET',
|
|
success: function (response) {
|
|
success: function (response) {
|
|
if (response.code === 1) {
|
|
if (response.code === 1) {
|
|
@@ -46,7 +46,7 @@
|
|
|
|
|
|
function deleteData(a, title, version) {
|
|
function deleteData(a, title, version) {
|
|
$.ajax({
|
|
$.ajax({
|
|
- url: `https://api.tianyunperfect.cn/excalidraw/delete_by_id?id=${a}&version=${version}`,
|
|
|
|
|
|
+ url: `https://php.tianyunperfect.cn/controller/excalidraw.php?action=delete&id=${a}&version=${version}`,
|
|
method: 'DELETE',
|
|
method: 'DELETE',
|
|
success: function (response) {
|
|
success: function (response) {
|
|
if (response.code === 1) {
|
|
if (response.code === 1) {
|