Browse Source

会员升级

Kirin 1 year ago
parent
commit
4773bc5aeb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/services/user/UserAwardIntegralServices.php

+ 1 - 1
app/services/user/UserAwardIntegralServices.php

@@ -221,7 +221,7 @@ class UserAwardIntegralServices extends BaseServices
     public function incIntegralAdmin(int $uid, string $price, string $total, float $order_price, int $type, string $extract_sum, int $link_id = 0, string $mark = '', $add_time = 0)
     {
         $inc_integral = bcdiv($total, $price, 5);
-        $old = UserIntegral::where('uid', $uid)->where('link_id', $link_id)->where('type', $type)->find();
+        $old = UserIntegral::where('uid', $uid)->where('link_id', $link_id)->where('type', $type)->where('mark', $mark)->find();
         if ($old) {
             $dump = '用户' . $uid . $mark . '补' . bcsub($inc_integral, $old['num'], 5);
         } else {