From 6376653609b3021fa251dfd942bafc0e191998b8 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Mon, 2 Sep 2024 16:42:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8E=92=E9=98=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Billions.php | 1 + app/common/logic/PayNotifyLogic.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/controller/Billions.php b/app/api/controller/Billions.php index 84ef8237..9853f1eb 100755 --- a/app/api/controller/Billions.php +++ b/app/api/controller/Billions.php @@ -77,6 +77,7 @@ class Billions extends Api public function rechargeBalance() { $order['order_amount'] = 100; + $order['id'] = 1; $result = PayNotifyLogic::handle('recharge_billions', $order, 196); // $post = $this->request->post(); // $result = BillionsLogic::applyBillionsBalance($this->user_id, $post); diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index ef7dfc4b..6d645fd0 100755 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -418,9 +418,9 @@ class PayNotifyLogic $donglonghui = 5; //东龙汇服务费 $other_leader = 3; //分公司收入 如没有则并入东龙汇 $shop_com = 60; // 商家获取收入 + $user = Db::name("user")->where(['id' => $user_id])->find(); + $is_d = Distribution::where('user_id', $user['first_leader'] )->where('is_distribution', 1 )->find(); var_dump(111); - $user = Db::name("user")->where(['id' => $user_id])->find();var_dump($user); - $is_d = Distribution::where('user_id', $user['first_leader'] )->where('is_distribution', 1 )->find();var_dump($is_d); $data['order_price'] = $order['order_amount']; // 改为充值金额 $data['user_id'] = $user_id; $data['goods_id'] = 0; // 充值接口不需要该参数