|
|
@@ -246,7 +246,7 @@ class User extends BaseController
|
|
|
{
|
|
|
$user = $this->request->userInfo();
|
|
|
$where= $this->request->params(['num']);
|
|
|
- if ($where['num'] <= $user['award_integral']){
|
|
|
+ if ($where['num'] > $user['award_integral']){
|
|
|
throw new \Exception('提现积分不能大于可拥有积分');
|
|
|
}
|
|
|
app()->make(UserRepository::class)->extractIntegral($user['uid'],$where['num']);
|