1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-12 04:34:10 +02:00

Преобразование OPI -> OInt (workflow)

This commit is contained in:
Vitaly the Alpaca 2024-06-08 12:20:12 +00:00 committed by Vitaly the Alpaca (bot)
parent 9e062af759
commit a98b668a95
6 changed files with 19 additions and 19 deletions

View File

@ -441,7 +441,7 @@ Procedure WriteLogFile(Val Data, Val Method, Val Library)
Try
LogPath = "./docs/results";
LogPath = "./docs/ru/results";
LibraryLogPath = LogPath + "/" + Library;
LogDirectory = New File(LogPath);

View File

@ -309,7 +309,7 @@ Function GetFilePath(Val Path, LocalParameter, Val SaveLocally = True) Export
Or StrFind(Path, "www") > 0 Then
TFN = GetTempFileName();
CopyFile(Path, TFN);
FileCopy(Path, TFN);
Path = TFN;
Binary = New BinaryData(Path);
@ -441,7 +441,7 @@ Procedure WriteLogFile(Val Data, Val Method, Val Library)
Try
LogPath = "./docs/results";
LogPath = "./docs/ru/results";
LibraryLogPath = LogPath + "/" + Library;
LogDirectory = New File(LogPath);

View File

@ -3734,7 +3734,7 @@ Procedure Telegram_SendPicture(FunctionParameters)
Image = FunctionParameters["Picture"];
ImagePath = GetTempFileName("png");
CopyFile(Image, ImagePath);
FileCopy(Image, ImagePath);
ImageDD = New BinaryData(ImagePath);
@ -3778,7 +3778,7 @@ Procedure Telegram_SendVideo(FunctionParameters)
Video = FunctionParameters["Video"];
VideoPath = GetTempFileName("mp4");
CopyFile(Video, VideoPath);
FileCopy(Video, VideoPath);
VideoDD = New BinaryData(VideoPath);
@ -3822,7 +3822,7 @@ Procedure Telegram_SendAudio(FunctionParameters)
Audio = FunctionParameters["Audio"];
AudioPath = GetTempFileName("mp3");
CopyFile(Audio, AudioPath);
FileCopy(Audio, AudioPath);
AudioDD = New BinaryData(AudioPath);
@ -3866,7 +3866,7 @@ Procedure Telegram_SendDocument(FunctionParameters)
Document = FunctionParameters["Document"];
DocumentPath = GetTempFileName("docx");
CopyFile(Document, DocumentPath);
FileCopy(Document, DocumentPath);
DocumentDD = New BinaryData(DocumentPath);
@ -3905,7 +3905,7 @@ Procedure Telegram_SendGif(FunctionParameters)
GIF = FunctionParameters["GIF"];
GifPath = GetTempFileName("gif");
CopyFile(GIF, GifPath);
FileCopy(GIF, GifPath);
GifDD = New BinaryData(GifPath);
@ -3944,10 +3944,10 @@ Procedure Telegram_SendMediaGroup(FunctionParameters)
Video = FunctionParameters["Video"];
ImagePath = GetTempFileName("png");
CopyFile(Image, ImagePath);
FileCopy(Image, ImagePath);
VideoPath = GetTempFileName("mp4");
CopyFile(Video, VideoPath);
FileCopy(Video, VideoPath);
VideoDD = New BinaryData(VideoPath);
@ -4446,7 +4446,7 @@ Procedure VK_CreatePost(FunctionParameters)
Image2 = FunctionParameters["Picture2"]; // URL, Path or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image2, TFN);
FileCopy(Image2, TFN);
ImageArray = New Array;
ImageArray.Add(Image);
@ -4513,7 +4513,7 @@ Procedure VK_CreateCompositePost(FunctionParameters)
Video = FunctionParameters["Video"]; // URL, Path or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
FileCopy(Image, TFN);
ImageUpload = OPI_VK.UploadPhotoToServer(TFN, Parameters)["response"][0];
VideoUpload = OPI_VK.UploadVideoToServer(Video, "NewVideo", , , Parameters);
@ -4594,7 +4594,7 @@ Procedure VK_SavePictureToAlbum(FunctionParameters)
Image = FunctionParameters["Picture"]; // URL, Path to file or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
FileCopy(Image, TFN);
Image = New BinaryData(TFN);
@ -4665,7 +4665,7 @@ Procedure VK_CreateStory(FunctionParameters)
Image = FunctionParameters["Picture"]; // URL, Path to file or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
FileCopy(Image, TFN);
Image = New BinaryData(TFN);
Result = OPI_VK.CreateStory(Image , URL, Parameters);
@ -4861,7 +4861,7 @@ Procedure Dropbox_UploadFile(FunctionParameters)
Image = FunctionParameters["Picture"];
ImagePath = GetTempFileName("png");
CopyFile(Image, ImagePath);
FileCopy(Image, ImagePath);
Result = OPI_Dropbox.UploadFile(Token, ImagePath, Path, True);

View File

@ -123,7 +123,7 @@ Procedure GetCollection(Value) Export
ElsIf StrStartsWith(Lower(Value), "http") Then
TFN = GetTempFileName();
CopyFile(Value, TFN);
FileCopy(Value, TFN);
JSONReader.OpenFile(TFN);
JSONReader.Read();
@ -239,7 +239,7 @@ Procedure GetLine(Value, Val FromSource = False) Export
ElsIf StrStartsWith(Lower(Value), "http") Then
TFN = GetTempFileName();
CopyFile(Value, TFN);
FileCopy(Value, TFN);
TextReader = New TextReader(TFN);
Value = TextReader.Read();

View File

@ -185,7 +185,7 @@ Procedure GetCollection(Value, Val Encoding)
ElsIf StrStartsWith(Lower(Value), "http") Then
TFN = GetTempFileName();
CopyFile(Value, TFN);
FileCopy(Value, TFN);
TextDocument.Read(TFN, Encoding);
Value = TextDocument.GetText();

View File

@ -441,7 +441,7 @@
Попытка
ПутьЛогов = "./docs/results";
ПутьЛогов = "./docs/ru/results";
ПутьЛоговБиблиотеки = ПутьЛогов + "/" + Библиотека;
КаталогЛогов = Новый Файл(ПутьЛогов);