From ef25e3a32621c0146f20d64f8ab5162cfd6e1fbf Mon Sep 17 00:00:00 2001
From: xuzhitang <xzt@bronet.cn>
Date: Thu, 25 Oct 2018 11:16:39 +0800
Subject: [PATCH] -m赠送积分计划总积分修改为剩余未赠送数量

---
 app/pay/controller/PayController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/pay/controller/PayController.php b/app/pay/controller/PayController.php
index 7839465..c606dcb 100644
--- a/app/pay/controller/PayController.php
+++ b/app/pay/controller/PayController.php
@@ -260,7 +260,7 @@ class PayController extends HomeBaseController
                 //插入配送计划表,先将此积分的一半立刻给用户,剩余一半每日按固定百分比给用户,直到发完为止
                 $integral_half = $integral / 2;
                 Db::startTrans();
-                $integral_give_id = $model->insertIntegralGive($info['uid'], $ratio, $integral_half, $integral, time());
+                $integral_give_id = $model->insertIntegralGive($info['uid'], $ratio, $integral_half, $integral_half, time());
                 if ($integral_give_id) {
                     if ($model->insertIntegralLog($integral_give_id, $info['uid'], time(), $integral_half, 1)) {
                         if(Db::name('user')->where(['id'=>$info['uid']])->setInc('balance', $integral_half)) {
--
libgit2 0.24.0