You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
17
hyhproject/common/model/UserReward.php
Executable file
17
hyhproject/common/model/UserReward.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user