bianjunhui hace 2 años
padre
commit
6311a3af5f
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      application/api/controller/Raffle.php

+ 5 - 0
application/api/controller/Raffle.php

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