LYECS 2.0 BUG修复

【有补充】评论单独晒单未赠送积分bug修复

LYECS,LYECS+商城系统,多用户商城系统,开源商城系统 发布日期:2016-01-25   作者:老杨
1、找到comment.php
找到:
        $sql = 'UPDATE ' . $GLOBALS['ecs']->table('comment') . " SET `show_photo`='".$show_photo."'  WHERE user_id = '" . $_SESSION['user_id'] . "' AND order_rec_id= '" . $order_rec_id . "'";  

        $result = $GLOBALS['db']->query($sql);

在下面添加以下代码:


        if($GLOBALS['_LYCFG']['show_send_point']>0 && $show_photo){
            log_account_change($_SESSION['user_id'], 0, 0, $GLOBALS['_LYCFG']['show_send_point'], $GLOBALS['_LYCFG']['show_send_point'], '晒单送积分');
        }


2、找到代码:


                            if( $cmt->show_photo && $cmt->is_add_showphoto){
                                add_comment($cmt);
                            }else{

替换为:


                            if( $cmt->show_photo && $cmt->is_add_showphoto){
                                add_comment($cmt);
                                die($json->encode($result)) ;  
                            }else{



2、找到mobile/comment.php,重复第1、2步的操作。



热门文章

分类标签