diff --git a/app/friendship/controller/FriendController.php b/app/friendship/controller/FriendController.php
index deecc4d..f7ef1bf 100644
--- a/app/friendship/controller/FriendController.php
+++ b/app/friendship/controller/FriendController.php
@@ -62,11 +62,11 @@ class FriendController extends HomeBaseController
             //获取赠送者角色、父级和当前积分
             $info = Db::name('user')->field('role,parent_id,balance')->where(['id' => $uid])->find();
             //判断此人积分是否足够赠送,且是否能被500整除
-            if ($info['balance'] < $total) {
+            if ($info['balance'] < $total && $total >= 0) {
                 echo json_encode(['msg' => '您的积分不足', 'status' => false]);
                 exit();
             } else {
-                if ($total % 500 != 0 && $total >= 0) {
+                if ($total % 500 != 0) {
                     echo json_encode(['msg' => '赠送积分必须是500积分的整数倍', 'status' => false]);
                     exit();
                 } else {