From 1502af629991d6f7662d42d68688100dce32adec Mon Sep 17 00:00:00 2001 From: "SW2125\\dltjd" Date: Sun, 21 Nov 2021 17:54:11 +0900 Subject: [PATCH] =?UTF-8?q?api=20=ED=98=B8=EC=B6=9C=20=EB=B3=80=EA=B2=BD,?= =?UTF-8?q?=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=B3=80=EA=B2=BD,=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetDropDown.xml | 17 +++ app/build.gradle | 4 +- .../java/com/zzz2757/bsm/Api/ApiClient.java | 2 +- .../com/zzz2757/bsm/Api/ApiInterface.java | 58 +++++----- .../java/com/zzz2757/bsm/Board/BoardFrag.java | 8 +- .../zzz2757/bsm/Board/BoardViewActivity.java | 46 ++++---- .../zzz2757/bsm/Board/PostWriteActivity.java | 8 +- .../main/java/com/zzz2757/bsm/ErrorCode.java | 52 +++++---- .../bsm/GetterSetter/GetterSetter.java | 12 +-- .../zzz2757/bsm/GetterSetter/PostData.java | 102 +++++------------- .../main/java/com/zzz2757/bsm/LoginFrag.java | 4 +- .../java/com/zzz2757/bsm/MainActivity.java | 6 +- 12 files changed, 147 insertions(+), 172 deletions(-) create mode 100644 .idea/deploymentTargetDropDown.xml diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..4db3c41 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index e890ce0..e4aea03 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "com.zzz2757.bsm" minSdk 21 targetSdk 30 - versionCode 6 - versionName "Beta 0.3.0" + versionCode 7 + versionName "1.0.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/zzz2757/bsm/Api/ApiClient.java b/app/src/main/java/com/zzz2757/bsm/Api/ApiClient.java index c09da97..8e4b388 100644 --- a/app/src/main/java/com/zzz2757/bsm/Api/ApiClient.java +++ b/app/src/main/java/com/zzz2757/bsm/Api/ApiClient.java @@ -31,7 +31,7 @@ public static Retrofit getApiClient(Context context){ if (retrofit == null){ retrofit = new Retrofit.Builder() .client(client) - .baseUrl(Common.getBaseUrl()) + .baseUrl(Common.getBaseUrl()+"api/") .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create(gson)) .build(); diff --git a/app/src/main/java/com/zzz2757/bsm/Api/ApiInterface.java b/app/src/main/java/com/zzz2757/bsm/Api/ApiInterface.java index cf5ac5e..17f5091 100644 --- a/app/src/main/java/com/zzz2757/bsm/Api/ApiInterface.java +++ b/app/src/main/java/com/zzz2757/bsm/Api/ApiInterface.java @@ -3,61 +3,55 @@ import com.zzz2757.bsm.GetterSetter.GetterSetter; import com.zzz2757.bsm.GetterSetter.PostData; +import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; +import retrofit2.http.GET; import retrofit2.http.POST; +import retrofit2.http.Path; +import retrofit2.http.Streaming; +import retrofit2.http.Url; public interface ApiInterface { + @GET + @Streaming + Call downloadFile(@Url String url); + @GET("version/app/android") + Call version(); @FormUrlEncoded - @POST("database") - Call version( - @Field("command_type") String command_type, - @Field("os") String os, - @Field("app") String app - ); - @FormUrlEncoded - @POST("database") + @POST("account/login") Call login( - @Field("command_type") String command_type, @Field("member_id") String member_id, @Field("member_pw") String member_pw ); - @FormUrlEncoded - @POST("database") + @GET("board/{boardType}") Call board( - @Field("command_type") String command_type, - @Field("boardType") String boardType + @Path("boardType") String boardType ); - @FormUrlEncoded - @POST("database") + @GET("post/{boardType}/{postNo}") Call post( - @Field("command_type") String command_type, - @Field("boardType") String boardType, - @Field("post_no") int post_no + @Path("boardType") String boardType, + @Path("postNo") int postNo ); - @FormUrlEncoded - @POST("database") + @GET("comment/{boardType}/{postNo}") Call comment( - @Field("command_type") String command_type, - @Field("boardType") String boardType, - @Field("post_no") int post_no + @Path("boardType") String boardType, + @Path("postNo") int postNo ); @FormUrlEncoded - @POST("database") + @POST("comment/{boardType}/{postNo}") Call commentWrtie( - @Field("command_type") String command_type, - @Field("boardType") String boardType, - @Field("post_no") int post_no, - @Field("post_comment") String post_comment + @Path("boardType") String boardType, + @Path("postNo") int postNo, + @Field("comment") String post_comment ); @FormUrlEncoded - @POST("database") + @POST("like/{boardType}/{postNo}") Call likeSend( - @Field("command_type") String command_type, - @Field("boardType") String boardType, - @Field("post_no") int post_no, + @Path("boardType") String boardType, + @Path("postNo") int postNo, @Field("like") int like ); } \ No newline at end of file diff --git a/app/src/main/java/com/zzz2757/bsm/Board/BoardFrag.java b/app/src/main/java/com/zzz2757/bsm/Board/BoardFrag.java index 9310cb7..6d5953b 100644 --- a/app/src/main/java/com/zzz2757/bsm/Board/BoardFrag.java +++ b/app/src/main/java/com/zzz2757/bsm/Board/BoardFrag.java @@ -60,7 +60,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c private void board(String boardType){ ApiInterface apiInterface = ApiClient.getApiClient(context).create(ApiInterface.class); - Call call = apiInterface.board("board", boardType); + Call call = apiInterface.board(boardType); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { @@ -72,11 +72,11 @@ public void onResponse(Call call, Response response) { e.printStackTrace(); } if(getSet.getStatus()!=1){ - ErrorCode.errorCode(context, getSet.getStatus()); + ErrorCode.errorCode(context, getSet.getStatus(), getSet.getSubStatus()); }else{ try { JSONObject jsonObject = new JSONObject(response.body().toString()); - JSONArray arr_board = jsonObject.getJSONArray("arr_board"); + JSONArray arr_board = jsonObject.getJSONArray("arrBoard"); for(int i=0;i call, Response response) { boardObject.getString("memberNickname"), boardObject.getString("postDate"), Integer.parseInt(boardObject.getString("postHit")), - Integer.parseInt(boardObject.getString("post_like")) + Integer.parseInt(boardObject.getString("postLike")) )); } } catch (JSONException e) { diff --git a/app/src/main/java/com/zzz2757/bsm/Board/BoardViewActivity.java b/app/src/main/java/com/zzz2757/bsm/Board/BoardViewActivity.java index 7eb29a4..8c72715 100644 --- a/app/src/main/java/com/zzz2757/bsm/Board/BoardViewActivity.java +++ b/app/src/main/java/com/zzz2757/bsm/Board/BoardViewActivity.java @@ -98,24 +98,24 @@ protected void onCreate(Bundle savedInstanceState) { comment(boardType, postNo); } - private void post(String boardType, int post_no){ + private void post(String boardType, int postNo){ ApiInterface apiInterface = ApiClient.getApiClient(this).create(ApiInterface.class); - Call call = apiInterface.post("post", boardType, post_no); + Call call = apiInterface.post(boardType, postNo); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { if(response.isSuccessful()&&response.body()!=null){ getSet.setStatus(response.body().getStatus());; if(getSet.getStatus()!=1){ - ErrorCode.errorCode(getApplicationContext(), getSet.getStatus()); + ErrorCode.errorCode(getApplicationContext(), getSet.getStatus(), getSet.getSubStatus()); }else{ - postNo_text.setText(""+post_no); - postTitle.setText(response.body().getPost_title()); - memberNickname.setText(response.body().getMember_nickname()); - postComments.setText(response.body().getPost_comments()+" 댓글"); - postHit.setText("조회 "+response.body().getPost_hit()); - postDate.setText(response.body().getPost_date()); - postLike.setText(response.body().getPost_like()); + postNo_text.setText(""+postNo); + postTitle.setText(response.body().getPostTitle()); + memberNickname.setText(response.body().getMemberNickname()); + postComments.setText(response.body().getPostComments()+" 댓글"); + postHit.setText("조회 "+response.body().getPostHit()); + postDate.setText(response.body().getPostDate()); + postLike.setText(response.body().getPostLike()); if(response.body().getLike()>0){ post_like_btn.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.green_btn)); post_dislike_btn.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.gray)); @@ -126,7 +126,7 @@ public void onResponse(Call call, Response response) { post_like_btn.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.gray)); post_dislike_btn.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.gray)); } - webView.loadDataWithBaseURL("https://bssm.kro.kr.", "" +webviewStyle+""+response.body().getPost_content()+"", "text/html; charset=utf8", "UTF-8", null); + webView.loadDataWithBaseURL("https://bssm.kro.kr.", "" +webviewStyle+""+response.body().getPostContent()+"", "text/html; charset=utf8", "UTF-8", null); } } } @@ -137,9 +137,9 @@ public void onFailure(Call call, Throwable t) { }); } - private void comment(String boardType, int post_no){ + private void comment(String boardType, int postNo){ ApiInterface apiInterface = ApiClient.getApiClient(this).create(ApiInterface.class); - Call call = apiInterface.comment("comment", boardType, post_no); + Call call = apiInterface.comment(boardType, postNo); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { @@ -151,11 +151,11 @@ public void onResponse(Call call, Response response) { e.printStackTrace(); } if(getSet.getStatus()!=1){ - ErrorCode.errorCode(getApplicationContext(), getSet.getStatus()); + ErrorCode.errorCode(getApplicationContext(), getSet.getStatus(), getSet.getSubStatus()); }else{ try { JSONObject jsonObject = new JSONObject(response.body().toString()); - JSONArray arr_comment = jsonObject.getJSONArray("arr_comment"); + JSONArray arr_comment = jsonObject.getJSONArray("arrComment"); for(int i=0;i call, Throwable t) { }); } - private void commentWrite(String boardType, int post_no, String comment, EditText edit_comment){ + private void commentWrite(String boardType, int postNo, String comment, EditText edit_comment){ ApiInterface apiInterface = ApiClient.getApiClient(this).create(ApiInterface.class); - Call call = apiInterface.commentWrtie("comment_write", boardType, post_no, comment); + Call call = apiInterface.commentWrtie(boardType, postNo, comment); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { if(response.isSuccessful()&&response.body()!=null){ getSet.setStatus(response.body().getStatus());; if(getSet.getStatus()!=1){ - ErrorCode.errorCode(getApplicationContext(), getSet.getStatus()); + ErrorCode.errorCode(getApplicationContext(), getSet.getStatus(), getSet.getSubStatus()); }else{ edit_comment.setText(null); commentList = new ArrayList<>(); commentAdapter = new CommentAdapter(commentList, getApplicationContext()); recyclerView.removeAllViewsInLayout(); recyclerView.setAdapter(commentAdapter); - comment(boardType, post_no); + comment(boardType, postNo); } } } @@ -211,9 +211,9 @@ public void onClickSubmit(View view) { commentWrite(boardType, postNo, edit_comment.getText().toString(), edit_comment); } - private void likeSend(String boardType, int post_no, int like){ + private void likeSend(String boardType, int postNo, int like){ ApiInterface apiInterface = ApiClient.getApiClient(this).create(ApiInterface.class); - Call call = apiInterface.likeSend("like", boardType, post_no, like); + Call call = apiInterface.likeSend(boardType, postNo, like); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { @@ -225,11 +225,11 @@ public void onResponse(Call call, Response response) { e.printStackTrace(); } if(getSet.getStatus()!=1){ - ErrorCode.errorCode(getApplicationContext(), getSet.getStatus()); + ErrorCode.errorCode(getApplicationContext(), getSet.getStatus(), getSet.getSubStatus()); }else{ try { JSONObject jsonObject = new JSONObject(response.body().toString()); - postLike.setText(jsonObject.getString("post_like")); + postLike.setText(jsonObject.getString("postLike")); if(Integer.parseInt(jsonObject.getString("like"))>0){ post_like_btn.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.green_btn)); post_dislike_btn.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.gray)); diff --git a/app/src/main/java/com/zzz2757/bsm/Board/PostWriteActivity.java b/app/src/main/java/com/zzz2757/bsm/Board/PostWriteActivity.java index 6cd8a2f..c8f073e 100644 --- a/app/src/main/java/com/zzz2757/bsm/Board/PostWriteActivity.java +++ b/app/src/main/java/com/zzz2757/bsm/Board/PostWriteActivity.java @@ -61,11 +61,11 @@ protected void onCreate(Bundle savedInstanceState) { Intent intent = getIntent(); Bundle bundle = intent.getExtras(); String boardType = bundle.getString("boardType"); - int post_no = bundle.getInt("postNo"); - if(post_no==0){ - webView.loadUrl(Common.getBaseUrl() +"app/post_write/"+boardType); + int postNo = bundle.getInt("postNo"); + if(postNo==0){ + webView.loadUrl(Common.getBaseUrl() +"app/board/write/"+boardType); }else{ - webView.loadUrl(Common.getBaseUrl() +"app/post_write/"+boardType+"?post_no="+post_no); + webView.loadUrl(Common.getBaseUrl() +"app/board/write/"+boardType+"/"+postNo); } } diff --git a/app/src/main/java/com/zzz2757/bsm/ErrorCode.java b/app/src/main/java/com/zzz2757/bsm/ErrorCode.java index ce453f6..d10cf27 100644 --- a/app/src/main/java/com/zzz2757/bsm/ErrorCode.java +++ b/app/src/main/java/com/zzz2757/bsm/ErrorCode.java @@ -4,36 +4,48 @@ import android.widget.Toast; public class ErrorCode{ - public static void errorCode(Context context, int error_code){ - String[] error_msg = { + public static void errorCode(Context context, int status, int subStatus){ + String[][] error_msg = { + { "서버와의 연결에 실패하였습니다.", + }, + { "정상 처리되었습니다.", - "정상적인 접근이 아닙니다.", + }, + { + "서버에 문제가 발생하였습니다.", "로그인 세션 저장에 실패하였습니다.", - "id 또는 password가 맞지 않습니다.", - "비밀번호 재입력이 맞지 않습니다.", - "이미 사용중인 id입니다.", - "이미 사용중인 닉네임입니다.", - "계정 인증이 필요합니다.", - "유효한 코드가 아닙니다.", - "만료된 코드입니다, 새로운 코드를 발급받아 주세요.", "회원가입중 알 수 없는 문제가 발생하였습니다.", - "수정할 비밀번호 재입력이 맞지 않습니다.", "비밀번호 수정에 실패하였습니다.", + "파일 업로드에 실패하였습니다.", + "게시글 작성에 실패하였습니다.", + }, + { + "정상적인 접근이 아닙니다.", + "권한이 없습니다.", + "유효한 코드가 아닙니다.", "멤버코드가 없습니다.", "검색어가 없습니다.", "잘못된 검색 대상입니다.", - "게시글 번호가 없습니다.", - "삭제된 게시글 입니다.", - "로그인후 이용 가능 합니다.", - "권한이 없습니다.", - "비밀번호 재설정이 필요합니다.", - "파일 업로드에 실패하였습니다.", - "게시글 작성에 실패하였습니다.", - "게시글 작성자가 아닙니다.", + "삭제된 게시글이거나 게시글이 없습니다.", + "작성자가 아닙니다.", "학생정보가 맞지 않습니다.", "인증코드 전송에 실패하였습니다.", + }, + { + "계정이 정지되었습니다.", + "로그인후 이용 가능 합니다.", + "비밀번호 재설정이 필요합니다.", + "만료된 코드입니다, 회원가입된 계정으로 로그인해주세요.", + }, + { + "id 또는 password가 맞지 않습니다.", + "비밀번호 재입력이 맞지 않습니다.", + "이미 사용중인 id입니다.", + "이미 사용중인 닉네임입니다.", + "수정할 비밀번호 재입력이 맞지 않습니다.", + }, }; - Toast.makeText(context, "에러코드 "+error_code+"\n"+ error_msg[error_code], Toast.LENGTH_SHORT).show(); + Toast.makeText(context, "에러코드 "+status+"_"+subStatus+"\n"+ error_msg[status][subStatus], Toast.LENGTH_SHORT).show(); } } diff --git a/app/src/main/java/com/zzz2757/bsm/GetterSetter/GetterSetter.java b/app/src/main/java/com/zzz2757/bsm/GetterSetter/GetterSetter.java index 0e6c474..c7652ac 100644 --- a/app/src/main/java/com/zzz2757/bsm/GetterSetter/GetterSetter.java +++ b/app/src/main/java/com/zzz2757/bsm/GetterSetter/GetterSetter.java @@ -1,12 +1,10 @@ package com.zzz2757.bsm.GetterSetter; public class GetterSetter { - private int status; + private int status, subStatus; - public int getStatus(){ - return status; - } - public void setStatus(int status){ - this.status = status; - } + public int getStatus() {return status;} + public int getSubStatus() {return subStatus;} + public void setStatus(int status){ this.status = status;} + public void setSubStatus(int subStatus) {this.subStatus = subStatus;} } diff --git a/app/src/main/java/com/zzz2757/bsm/GetterSetter/PostData.java b/app/src/main/java/com/zzz2757/bsm/GetterSetter/PostData.java index 104ba59..c62e59b 100644 --- a/app/src/main/java/com/zzz2757/bsm/GetterSetter/PostData.java +++ b/app/src/main/java/com/zzz2757/bsm/GetterSetter/PostData.java @@ -1,79 +1,33 @@ package com.zzz2757.bsm.GetterSetter; public class PostData { - private int status, postNo, like; - private String board_type, post_title, post_content, post_comments, member_code, member_nickname, post_date, post_hit, post_like; + private int status, subStatus, postNo, like; + private String boardType, postTitle, postContent, postComments, memberCode, memberNickname, postDate, postHit, postLike; - public int getStatus() { - return status; - } - public int getPostNo() { - return postNo; - } - public String getBoard_type() { - return board_type; - } - public String getPost_title() { - return post_title; - } - public String getPost_content() { - return post_content; - } - public String getPost_comments() { - return post_comments; - } - public String getMember_code() { - return member_code; - } - public String getMember_nickname() { - return member_nickname; - } - public String getPost_date() { - return post_date; - } - public String getPost_hit() { - return post_hit; - } - public String getPost_like() { - return post_like; - } - public int getLike() { - return like; - } - public void setStatus(int status) { - this.status = status; - } - public void setPostNo(int postNo) { - this.postNo = postNo; - } - public void setBoard_type(String board_type) { - this.board_type = board_type; - } - public void setPost_title(String post_title) { - this.post_title = post_title; - } - public void setPost_content(String post_content) { - this.post_content = post_content; - } - public void setPost_comments(String post_comments) { - this.post_comments = post_comments; - } - public void setMember_code(String member_code) { - this.member_code = member_code; - } - public void setMember_nickname(String member_nickname) { - this.member_nickname = member_nickname; - } - public void setPost_date(String post_date) { - this.post_date = post_date; - } - public void setPost_hit(String post_hit) { - this.post_hit = post_hit; - } - public void setPost_like(String post_like) { - this.post_like = post_like; - } - public void setLike(int like) { - this.like = like; - } + public int getStatus() {return status;} + public int getSubStatus() {return subStatus;} + public void setStatus(int status) {this.status = status;} + public void setSubStatus(int subStatus) {this.subStatus = subStatus;} + public int getPostNo() {return postNo;} + public void setPostNo(int postNo) {this.postNo = postNo;} + public int getLike() {return like;} + public void setLike(int like) {this.like = like;} + public String getBoardType() {return boardType;} + public void setBoardType(String boardType) {this.boardType = boardType;} + public String getPostTitle() {return postTitle;} + public void setPostTitle(String postTitle) {this.postTitle = postTitle;} + public String getPostContent() {return postContent;} + public void setPostContent(String postContent) {this.postContent = postContent;} + public String getPostComments() {return postComments;} + public void setPostComments(String postComments) {this.postComments = postComments;} + public String getMemberCode() {return memberCode;} + public void setMemberCode(String memberCode) {this.memberCode = memberCode;} + public String getMemberNickname() {return memberNickname;} + public void setMemberNickname(String memberNickname) {this.memberNickname = memberNickname;} + public String getPostDate() {return postDate;} + public void setPostDate(String postDate) {this.postDate = postDate;} + public String getPostHit() {return postHit;} + public void setPostHit(String postHit) {this.postHit = postHit;} + public String getPostLike() {return postLike;} + public void setPostLike(String postLike) {this.postLike = postLike;} } diff --git a/app/src/main/java/com/zzz2757/bsm/LoginFrag.java b/app/src/main/java/com/zzz2757/bsm/LoginFrag.java index 40045ec..ba6bcfc 100644 --- a/app/src/main/java/com/zzz2757/bsm/LoginFrag.java +++ b/app/src/main/java/com/zzz2757/bsm/LoginFrag.java @@ -40,14 +40,14 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c private void login(String member_id, String member_pw){ ApiInterface apiInterface = ApiClient.getApiClient(context).create(ApiInterface.class); - Call call = apiInterface.login("login", member_id, member_pw); + Call call = apiInterface.login(member_id, member_pw); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { if(response.isSuccessful()&&response.body()!=null){ getSet.setStatus(response.body().getStatus());; if(getSet.getStatus()!=1){ - ErrorCode.errorCode(context, getSet.getStatus()); + ErrorCode.errorCode(context, getSet.getStatus(), getSet.getSubStatus()); }else{ Toast.makeText(context, "로그인 성공! status: "+getSet.getStatus(), Toast.LENGTH_SHORT).show(); } diff --git a/app/src/main/java/com/zzz2757/bsm/MainActivity.java b/app/src/main/java/com/zzz2757/bsm/MainActivity.java index 2c5979a..14d2ad6 100644 --- a/app/src/main/java/com/zzz2757/bsm/MainActivity.java +++ b/app/src/main/java/com/zzz2757/bsm/MainActivity.java @@ -116,7 +116,7 @@ private void setFrag(int n){ private void version(){ ApiInterface apiInterface = ApiClient.getApiClient(this).create(ApiInterface.class); - Call call = apiInterface.version("version", "android", "app"); + Call call = apiInterface.version(); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { @@ -128,7 +128,7 @@ public void onResponse(Call call, Response response) { e.printStackTrace(); } if(getSet.getStatus()!=1){ - ErrorCode.errorCode(getApplicationContext(), getSet.getStatus()); + ErrorCode.errorCode(getApplicationContext(), getSet.getStatus(), getSet.getSubStatus()); }else{ try { JSONObject jsonObject = new JSONObject(response.body().toString()); @@ -155,7 +155,7 @@ private void newVersion(String newVersionName){ builder.setPositiveButton("업데이트", new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int id) { - Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://bssm.kro.kr/download?os=android&app=app")); + Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://bssm.kro.kr/#download")); startActivity(intent); } });