WIN-2308041133\Administrator 5 ay önce
ebeveyn
işleme
7902fb68ca
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/controller/api/user/User.php

+ 1 - 1
app/controller/api/user/User.php

@@ -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']);