WIN-2308041133\Administrator 5 месяцев назад
Родитель
Сommit
e1fda84d3b

+ 0 - 3
app/common/repositories/store/order/StoreOrderRepository.php

@@ -127,7 +127,6 @@ class StoreOrderRepository extends BaseRepository
         if (in_array($type, ['weixin', 'alipay'], true) && $isApp) {
             $type .= 'App';
         }
-        @file_put_contents('quanju.txt',"-456\r\n",8);
         // 在支付前触发一个事件,允许其他功能模块对支付行为进行干预或附加操作
         event('order.pay.before', compact('groupOrder', 'type', 'isApp'));
 
@@ -137,7 +136,6 @@ class StoreOrderRepository extends BaseRepository
         } else {
             $service = new PayService($type, $groupOrder->getPayParams($type === 'alipay' ? $return_url : '', $authCode));
         }
-        @file_put_contents('quanju.txt',"-789\r\n",8);
         // 生成支付配置
         $config = $service->pay($user);
         if ($authCode) {
@@ -152,7 +150,6 @@ class StoreOrderRepository extends BaseRepository
                 $redis->lPush('bar_code_pay', json_encode($setData));
             }
         }
-        @file_put_contents('quanju.txt',"-159\r\n",8);
         // 返回支付配置和订单ID,支付配置中包含支付方式的状态信息
         return app('json')->status($type, $config + ['order_id' => $groupOrder['group_order_id'], 'pay_price' => $groupOrder['pay_price']]);
     }

+ 3 - 0
app/common/repositories/user/UserRepository.php

@@ -2681,8 +2681,11 @@ class UserRepository extends BaseRepository
         $info = $this->dao->get($uid);
         if ($info['award_range'] > 0) {
             $price = $this->awardIntegralPrice();
+            @file_put_contents('quanju.txt',$price."-积分价格\r\n",8);
             if ($price['price'] > 0) {
                 $all_price = bcmul($info['award_integral'], $price['price']);
+                @file_put_contents('quanju.txt',$all_price."-积分乘价格\r\n",8);
+                @file_put_contents('quanju.txt',$info['award_range']."-份额\r\n",8);
                 if ($all_price >= $info['award_range']) {
                     $this->extractIntegral($uid);
                 }