Skip to content

Commit

Permalink
[수정] 1. 네이버 번역기 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
killkimno committed Apr 22, 2021
1 parent 35590f5 commit 4104994
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MORT/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion MORT/TransAPI/NaverTranslateAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void ChangeValue(string idKey, string secretKey, bool isPaid = false)
{
if(this.idKey == idKey)
{
this.isPaid = this.isPaid;
this.isPaid = isPaid;
this.secretKey = secretKey;
if (isPaid)
{
Expand All @@ -85,6 +85,19 @@ public void SetTransCode(string transCode, string resultCode)

public string GetResult(string original, ref bool isError)
{
/*
//TEST
if(!isPaid)
{
TransManager.Instace.SetState(TransManager.NaverKeyData.eState.Error);
if (TransManager.Instace.naverKeyList.Count > 1)
{
TransManager.NaverKeyData data = TransManager.Instace.GetNextNaverKey();
Init(data);
return "\n[" + (TransManager.Instace.currentNaverIndex + 1).ToString() + "]번째 키를 활성화 합니다. ";
}
}
*/
//줄바꿈은 %0A 임
string trim = original.Replace(" ", "");
trim = trim.Replace(Environment.NewLine, "");
Expand Down

0 comments on commit 4104994

Please sign in to comment.