포인트를 저장하는 부분에 적용여부를 확인하지 않는 문제 고침#2348
Merged
2 commits merged intoDec 10, 2018
Merged
Conversation
보통 기존에 기록이 있을 경우 $current_point의 값이 0보다 이상이기 때문에 먼저 가져온 값을 이용하고 $current_point가 0 일 경우에만 insert를 먼저 실행하도록함. member_srl칼럼이 primary_key 이기 때문에 이미 디비상에서 존재할경우 insert가 되지 않기 때문에 다시 update를 실행하여 확실한 작동을 유도함. (이때 리턴을 시키지 않음)
dorami
added a commit
to daolcms/daolcms
that referenced
this pull request
Dec 23, 2018
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
포인트를 저장하는 부분에 적용여부의 성공이나 실패 여부 등등의 내용을 뿌려주지 않아 확인할 수 없는 문제가 있는 것 같습니다.
적어도 return $output 이 있다면 리턴을 통해서 적용여부라도 확인할 수 있도록 제공해주는 것이 좋다고 생각해서 수정했습니다.
구현된 function 아래에 return $output 이 잇지만 어떤 내용도 리턴되고 잇지 않고 잇었습니다.
rhymix/rhymix#1116
의 코드와 동일하고, 이 코드의 대한 라이선스는 듀얼라이선스로 적용하겠습니다..