From 66c13248c844b7188eba2dde7dafd31716f22770 Mon Sep 17 00:00:00 2001
From: xuzhitang <xzt@bronet.cn>
Date: Thu, 25 Oct 2018 10:52:24 +0800
Subject: [PATCH] 赠送积分数量修正为价格2倍

---
 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 27f6572..7839465 100644
--- a/app/pay/controller/PayController.php
+++ b/app/pay/controller/PayController.php
@@ -251,7 +251,7 @@ class PayController extends HomeBaseController
                     ->select();
                 $integral = 0;
                 foreach ($data as $item) {
-                    $integral += $item['price'] * $item['num'];
+                    $integral += $item['price'] * $item['num'] * 2;
                 }
 
                 $ratio = Db::name('zj_system')->where(['id' => 1])->value('integral');
--
libgit2 0.24.0