|
@@ -66,14 +66,14 @@ class Grabgift extends Api
|
|
|
//先用redis看开奖状态
|
|
|
$seat_number = $this->redis->get('kge_grabgift_'.$grab_id);
|
|
|
if($seat_number === false){
|
|
|
- $this->error('此期已开奖');
|
|
|
+ $this->error('手慢啦');
|
|
|
}
|
|
|
|
|
|
//先加入,再去重
|
|
|
$is_joined = $this->redis->hSet('kge_grabgift_data_'.$grab_id,$this->auth->id,$this->auth->id);
|
|
|
if($is_joined == 0){
|
|
|
//第一次设置,返回1;二次覆盖,返回0
|
|
|
- $this->error('您已经参与了此期');
|
|
|
+ $this->error('等待开奖中');
|
|
|
}
|
|
|
|
|
|
//数量限制
|
|
@@ -81,7 +81,7 @@ class Grabgift extends Api
|
|
|
if ($count > $seat_number) {
|
|
|
$this->redis->decr('kge_grabgift_num_'.$grab_id);
|
|
|
$this->redis->hDel('kge_grabgift_data_'.$grab_id,$this->auth->id);
|
|
|
- $this->error('此期人数已满');
|
|
|
+ $this->error('手慢啦下期见');
|
|
|
}
|
|
|
|
|
|
//扣钱
|