程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> shopnc 二次開發 每日簽到積分領取,shopnc二次開發

shopnc 二次開發 每日簽到積分領取,shopnc二次開發

編輯:關於PHP編程

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));
        
    }

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved