|
@@ -97,6 +97,11 @@ class Raffle extends Api
|
|
|
//获取积分,抽奖次数
|
|
|
public function getPoints(){
|
|
|
$where=$this->getWhere();
|
|
|
+ $data['is_share'] =0;
|
|
|
+ $list = Db::name('rashare')->where($where)->find();
|
|
|
+ if($list){
|
|
|
+ $data['is_share'] =1;
|
|
|
+ }
|
|
|
$data['points'] =$this->getUserPoints($where);
|
|
|
$data['nums']=$this->getRanums($where);
|
|
|
$this->success('success',$data);
|