Skip to content

Commit

Permalink
Merge pull request #135 from Leehunil/main
Browse files Browse the repository at this point in the history
📄: S3 변경으로 기본 프로필 이미지, 온도 이미지 변경
  • Loading branch information
chanu2 authored Nov 1, 2023
2 parents 46a310f + 78df430 commit 8394a02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ private static void updateTemperatureImage(Temperature temperature) {

switch((int) (currentTemperature / 20)) {
case 5, 4:
image = "https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7C7491b506-606c-40de-9053-84c86b3b1f5b.png";
image = "https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C3fad8504-31f5-4243-9aae-6d710cbdbdae.png";
break;
case 3:
image = "https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7C1685e865-278c-4e74-8f2e-8c6d5daf2fa1.png";
image = "https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C4388d892-76e4-4530-91f7-6f8eab7b2cc3.png";
break;
case 2:
image = "https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7C3a0f6539-4467-48c3-b4b6-2b27d0126be6.png";
image = "https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7Cb34fae75-7946-4e5c-8176-5f7a63dcc120.png";
break;
case 1:
image = "https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7C31d30651-c9a3-4d77-a2d1-8f21c95ce400.png";
image = "https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C21e880a0-f44a-487c-9958-b75b6a640ee7.png";
break;
default:
image = "https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7Ca6caee77-23c3-46b7-80d6-49b56d76a8f2.png";
image = "https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C3443f4ba-3560-4e5c-b3f2-eb0e9d5e8b5f.png";
break;
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/resources/data.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
INSERT INTO profile_image(profile_image_id, image_url)
VALUES
(1, 'https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7C098f3311-eae2-4f51-8ae7-90b4fa0887fc.jpeg'),
(2, 'https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7Cea98a33e-8cda-49e9-ae0a-5ec66f935cea.jpeg'),
(3, 'https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7Ceedc049d-b84e-427b-abb2-003f454af16d.jpeg'),
(4, 'https://ohsoontaxi.s3.ap-northeast-2.amazonaws.com/1%7Cf6e4f790-665e-42c1-a013-0185f31672e0.jpeg')
(1, 'https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C107648f1-9d4a-4f4b-bec6-69a7e911af9a.jpeg'),
(2, 'https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C1eec6834-8c60-464e-8c02-ae5d8116ba85.jpeg'),
(3, 'https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C46f4fcf7-744a-457c-8f64-7b7e159a49cd.jpeg'),
(4, 'https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7C9f644f39-1929-48fb-bee8-6319c95a53bc.jpeg'),
(5, 'https://ohsoonbucket.s3.ap-northeast-2.amazonaws.com/image/1%7Cd782da88-cc95-42b5-8233-416891e875a2.jpeg')
ON DUPLICATE KEY UPDATE image_url = VALUES(image_url);

0 comments on commit 8394a02

Please sign in to comment.