541469799@qq.com 1 년 전
부모
커밋
29c442bb3a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/index/controller/Checkout.php

+ 1 - 1
app/index/controller/Checkout.php

@@ -242,7 +242,7 @@ class Checkout extends Controller
                     if ($fromUserId && $fromUserId != $order['user_id']) {
                         $describe = "Giveaway after successful sharing";
                         $payPoints = intval(bcmul($order['pay_price'], '100', 0));
-                        UserModel::setIncPoints(intval($fromUserId), -$payPoints, $describe);
+                        UserModel::setIncPoints(intval($fromUserId), $payPoints, $describe);
                         Cache::delete(UserModel::SHARE_PREFIX . $order['user_id']);
                         ShareKey::delKey($key);
                     }