Ver código fonte

确认收货-注释掉部分数据修改,会导致后续结算流程出问题

sunxbiao 5 meses atrás
pai
commit
ab36243aff

+ 7 - 6
app/common/repositories/store/order/StoreOrderRepository.php

@@ -2867,12 +2867,13 @@ class StoreOrderRepository extends BaseRepository
2867 2867
                 Db::name("log")->insert(array('data' => '小程序支付回调5:' . json_encode($user)));//日志记录
2868 2868
                 Db::name("log")->insert(['data' => json_encode($order->mer_id)]);//日志记录
2869 2869
                 $merchant_type = Db::name('merchant')->where('mer_id', $order->mer_id)->value('merchant_type');
2870
-                if ($merchant_type == 2) {
2871
-                    $this->computed_yishangtong($order->order_sn);
2872
-                } else {
2873
-                    $this->computed($order, $user);
2874
-
2875
-                }
2870
+                // 这里暂时注释 -- 确认收货时不应修改 用户账单表 的 数据生效状态,应该是订单结算时,将奖励状态设置为 生效,目前这里将订单的 养老金、直推奖、锁客、分享佣金等设置为生效后,订单自动结算时,将导致未查询到待生效 奖励数据
2871
+                // if ($merchant_type == 2) {
2872
+                //     $this->computed_yishangtong($order->order_sn);
2873
+                // } else {
2874
+                //     $this->computed($order, $user);
2875
+                //
2876
+                // }
2876 2877
                 //分账
2877 2878
 //            $this -> splitOrder($order);
2878 2879
                 //TODO 确认收货