|
|
|
@ -112,7 +112,10 @@ class CouponController extends BaseController |
|
|
|
$ids = $this->request->input("ids", ''); |
|
|
|
$res = $this->couponRecService->receive($userId,$receiveType,$ids); |
|
|
|
if(!empty($res['success'])){ |
|
|
|
return $this->success(['text' => '红包领取成功,请到“我的-红包”中查看']); |
|
|
|
return $this->success([ |
|
|
|
'status' => 'ok', |
|
|
|
'message' => '红包领取成功,请到“我的-红包”中查看'] |
|
|
|
); |
|
|
|
}else{ |
|
|
|
throw new ErrorCodeException(ErrorCode::COUPON_RECEIVE_FAILURE); |
|
|
|
} |
|
|
|
|