You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			18 lines
		
	
	
		
			418 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			418 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<?php
 | 
						|
namespace wstmart\common\model;
 | 
						|
/**
 | 
						|
 *
 | 
						|
 */
 | 
						|
class UserReward extends Base{
 | 
						|
    public function getRewardList($where,$field='*'){
 | 
						|
    	return $this->where($where)->select();
 | 
						|
    }
 | 
						|
    public function getRewardInfo($where,$field='*'){
 | 
						|
    	return $this->where($where)->find();
 | 
						|
    }
 | 
						|
    public function addReward($data){
 | 
						|
    	$data['createTime'] = time();
 | 
						|
    	return $this->insert($data);
 | 
						|
    }
 | 
						|
}
 |