Commit 1d3830d8 by 杨树贤

添加是否可以兑换红包码的判断

parent 8989c0c2
Showing with 4 additions and 0 deletions
......@@ -35,6 +35,10 @@ class IntegralService
break;
case self::INTEGRAL_TYPE_INTEGRAL_CODE:
$result['data'][$key]['button_text'] = '去兑换';
//还需要告知前端是否已经兑换过红包码
$redis = new RedisModel();
$exchanged = $redis->sismember('ic_welfare_code_limit', $map['user_id']);
$result['data'][$key]['code_exchanged'] = $exchanged;
break;
case self::INTEGRAL_TYPE_SHARE:
$result['data'][$key]['button_text'] = '去分享';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment