欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

shopnc 二次开发 每日签到积分领取,shopnc二次开发_PHP教程

程序员文章站 2022-06-05 18:11:18
...

shopnc 二次开发 每日签到积分领取,shopnc二次开发

/*

开始shopnc!!!!!

*/

Mode :points.model.php

方法: savePointsLog 添加:

            case 'day':
                if(!$insertarr['pl_desc']){
                    $insertarr['pl_desc'] = Language::get('pointsdaydesc');
                }
                break;

Language :common.php

            添加"pointsdaydesc"

$lang['pointsdaydesc']            =    '会员每日登录';

control :index.php

          添加 "userjfOp"

    public function userjfOp(){
        $model = Model('member');
        $user =array(); 
        $user['member_points'] = $model->getMemberInfo(array('member_id'=>$_SESSION['member_id']),'member_points');
        if($user['member_points'] == '0' ) { $model->checkloginMember();}
        $userpoints = rand(0,10);
        if($userpoints =='0' ){ $userpoints = rand(0,10);}
        //$userpoints ='0.'.$userpoints;
        $model_points =Model('points');
        $arr_points = array();
        $pix = $model_points->getPointsInfo(array('pl_memberid'=>$_SESSION['member_id']));
        $model_points->savePointsLog('day',array('pl_memberid'=>$_SESSION['member_id'],'pl_membername'=>$_SESSION['member_name'],'pl_points'=>$userpoints));
        
    }

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1064527.htmlTechArticleshopnc 二次开发 每日签到积分领取,shopnc二次开发 /* 开始shopnc!!!!! */ Mode :points.model.php 方法:savePointsLog 添加: case 'day': if (! $insertarr ['pl_de...
相关标签: shopnc