|
|
@@ -136,6 +136,9 @@ class UserExtract extends BaseController
|
|
|
{
|
|
|
$user = $this->request->userInfo();
|
|
|
$where= $this->request->params(['num']);
|
|
|
+ if ($where['num'] <= $user['award_integral']){
|
|
|
+ throw new \Exception('提现积分不能大于可拥有积分');
|
|
|
+ }
|
|
|
app()->make(UserRepository::class)->extractIntegral($user['uid'],$where['num']);
|
|
|
return app('json')->success('已提现至佣金');
|
|
|
}
|