묻고답하기

  point 모듈에서 point.controller.php 파일중

function triggerInsertComment(&$obj)
    {
        $module_srl = $obj->module_srl;
        $member_srl = $obj->member_srl;
        if(!$module_srl || !$member_srl) return new Object();
        // Do not increase the points if the member is the author of the post
        $document_srl = $obj->document_srl;
        $oDocumentModel = getModel('document');
        $oDocument = $oDocumentModel->getDocument($document_srl);
        if(!$oDocument->isExists() || abs($oDocument->get('member_srl'))==abs($member_srl)) return new Object();
        // Get the point module information
        $oModuleModel = getModel('module');
        $config = $oModuleModel->getModuleConfig('point');
        $module_config = $oModuleModel->getModulePartConfig('point', $module_srl);
        // Get the points of the member
        $oPointModel = getModel('point');
        $cur_point = $oPointModel->getPoint($member_srl, true);

        $point = $module_config['insert_comment'];
        if(strlen($point) == 0 && !is_int($point)) $point = $config->insert_comment;
        // Increase the point
        $cur_point += $point;
        $this->setPoint($member_srl,$cur_point);

        return new Object();
    }

이부분을 참고로 예약모듈용 트리거를 만들고 있습니다.

예약 모듈에서 예약시 포인트 적용을 하고 싶은데, 나머지 php 부분은 비슷한 형식으로 다 추가했습니다.

이부분이 차감의 핵심인거 같은데 맞나요?

아무리 수정해봐도 적용이 안되는군요...

알고 싶은건 예약 모듈에서도 따로 무언가의 해당 코드를 추가를 해줘야 적용되는 건가요?

아니면 point 모듈에서만 수정으만으로도 예약모듈에  포인트 차감이 적용이 되는건가요?

이걸로 3일간 씨름을 하고 있습니다...

맨땅에 헤딩하는거라 저부분이 맞는건지도 모르겠네요... 

function triggerBookingTobook(&$obj)
    {
        $module_srl = $obj->module_srl;
        $member_srl = $obj->member_srl;
        $bookingSrl = $obj->bookingSrl;
        $bookingerSrl = $obj->bookingerSrl;
        if(!$bookingSrl || !$bookingerSrl) return new Object();
        // Do not increase the points if the member is the author of the post
        $productNo = $obj->productNo;
        $oDocumentModel = getModel('booking');
        $oDocument = $oDocumentModel->getDocument($productNo);
        // Get the point module information
        $oModuleModel = getModel('module');
        $config = $oModuleModel->getModuleConfig('point');
        $module_config = $oModuleModel->getModulePartConfig('point', $bookingSrl);
        // Get the points of the member
        $oPointModel = getModel('point');
        $cur_point = $oPointModel->getPoint($bookingerSrl, true);

        $point = $module_config['insert_booking'];
        if(strlen($point) == 0 && !is_int($point)) $point = $config->insert_booking;
        // Increase the point
        $cur_point += $point;
        $this->setPoint($bookingerSrl,$cur_point);

        return new Object();

}

이부분이 수정하고 있는 소스입니다..

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Ystory 쇼핑몰 재고 문의 입니다.  
키노 사이드메뉴바 크기 조절을 어떻게 해야 할까요? [1] file 2015.10.30 by DoorWeb
xe사용자권한 구글 애드센스 삽입좀하렬고하는데 ,,,가르쳐주세요 ㅠㅠ  
건즈 로그인을 안해도 검색 가능하도록 하고 싶습니다. 뭐가 문제인가요?  
ilkuang 페이스북 Socialxe 로그인 시 프로필 이미지를 못가져오는 문제 file  
wulrara 관리자 권한에 대한 질의 [2] file 2015.10.30 by sports21
제로보드신세계잼 카메론 bx 슬라이드 모바일 관련 질문입니다. [1] 2015.10.30 by treasurej
키쨩 게시판 댓글창을 삭제하고싶은대 어떻게삭제하나요 ?  
ING 설정 기본URL 주소 변경시 페이지 경로 오류  
키쨩 뒤에주소 안보게할수없나요 ? [1] 2015.10.29 by DoorWeb
레인포드 xe 스쿨보고 따라하는 중 메뉴바 서브매뉴 관련 [4] 2015.10.29 by 레인포드
thdwjdtjr 게시판에서 회원 닉네임 클릭시 팝업창이 안뜨게할 수 없나요 [6] 2015.10.29 by thdwjdtjr
JAYLEEKOREA 이 게시판 모듈이 뭔가요? [5] file 2015.10.29 by Chuu98
npr05324 푸시 알림 사용시 DB 관련 오류가 발생합니다. [1] 2015.10.29 by Chuu98
seacloud 설치화면이 안보여요. 서버가 index.php를 못읽네요 [7] 2015.10.29 by Chuu98
플레이앱 XE Recruitment 커스텀 관련  
xe사용자권한 구글애드센스 기입할려고하는데 알려주세요 ㅠ [1] 2015.10.29 by I-JEX
키쨩 동영상같은거올릴때 게시글옆에 사진뜨게하는법없나요 ?  
도르르 홈페이지 파일 업로드 문제입니다 [1] 2015.10.29 by 도르르
xe사용자권한 oops! 잘못된요청입니다. [3] file 2015.10.29 by sports21
sports21 게시판에 파일 첨부시 오류 [2] file 2015.10.29 by sports21
tsoj XEDITION v1.9에서 content 위젯 사용할 경우 이미지 이름  
Paul [DB] xe_document_histories 라는 곳에 있는 것들을 지워도 되나요? [2] 2015.10.29 by Paul
졸라맨 아이디 찾기, 비밀번호 찾기 이메일 발송이 잘되던게 안되네요.ㅠㅠ [2] 2015.10.29 by 졸라맨
푸우143d7 회원가입 페이지 링크 오류 [1] 2015.10.29 by Chuu98
0201 외부 API를 XE 게시판으로 출력하고 싶은데 어떻게 해야할까요? [5] 2015.10.29 by Chuu98
thdwjdtjr 사진게시판에 에러발생합니다....도와주세요.... [2] file 2015.10.28 by thdwjdtjr
짱구삼촌 contact 메일이 안들오는데 어떻게 하면 되져? [2] 2015.10.28 by 로이조52
큐원 the dreamer 모바일 레이아웃에서 "pc버전" 메뉴를 만들려면 어떻게 해야되요? [2] 2015.10.28 by 큐원
clara www.주소. com/xe/로 설치 했을 경우 index 에서 로그인 나오게 하는 방법 [3] 2015.10.28 by clara