diff --git a/app/api/logic/OrderLogic.php b/app/api/logic/OrderLogic.php index 6cb911bc..d5bcb56a 100755 --- a/app/api/logic/OrderLogic.php +++ b/app/api/logic/OrderLogic.php @@ -1753,7 +1753,6 @@ class OrderLogic extends Logic $shop_com = 60; // 商家获取收入 $order_goods = Db::name("order_goods")->where('order_id',$order['id'])->select()->toArray(); $user = Db::name("user")->where("id",$order['user_id'])->find(); - $first_leader_user = Db::name("user")->where("id", $user['first_leader'])->find(); $is_d = Distribution::where('user_id', $user['first_leader'] )->where('is_distribution', 1 )->find(); foreach($order_goods as $key=>$value){ $data['order_price'] = $value['total_pay_price']; @@ -1798,9 +1797,7 @@ class OrderLogic extends Logic if ($first_save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -1826,9 +1823,7 @@ class OrderLogic extends Logic if ($first_save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -1922,9 +1917,7 @@ class OrderLogic extends Logic if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -1950,9 +1943,7 @@ class OrderLogic extends Logic if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -2022,9 +2013,7 @@ class OrderLogic extends Logic if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -2054,9 +2043,7 @@ class OrderLogic extends Logic if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } diff --git a/app/common/command/WechatMiNiCheckPayOrder.php b/app/common/command/WechatMiNiCheckPayOrder.php index 1faeec03..4ad40c95 100755 --- a/app/common/command/WechatMiNiCheckPayOrder.php +++ b/app/common/command/WechatMiNiCheckPayOrder.php @@ -34,6 +34,7 @@ class WechatMiNiCheckPayOrder extends Command protected function execute(Input $input, Output $output) { + return true; Log::write('执行微信订单状态查询'); try { $config = WeChatServer::getPayConfigBySource(1)['config']; @@ -89,7 +90,6 @@ class WechatMiNiCheckPayOrder extends Command $other_leader = 3; //分公司收入 如没有则并入东龙汇 $shop_com = 60; // 商家获取收入 $user = Db::name("user")->where(['id' => $user_id])->find(); - $first_leader_user = Db::name("user")->where("id", $user['first_leader'])->find(); $is_d = Distribution::where('user_id', $user['first_leader'] )->where('is_distribution', 1 )->find(); $data['order_price'] = $order['order_amount']; // 改为充值金额 $data['user_id'] = $user_id; @@ -135,9 +135,7 @@ class WechatMiNiCheckPayOrder extends Command if ($first_save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -163,9 +161,7 @@ class WechatMiNiCheckPayOrder extends Command if ($first_save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -262,9 +258,7 @@ class WechatMiNiCheckPayOrder extends Command if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -291,9 +285,7 @@ class WechatMiNiCheckPayOrder extends Command if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -359,9 +351,7 @@ class WechatMiNiCheckPayOrder extends Command if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); } @@ -392,9 +382,7 @@ class WechatMiNiCheckPayOrder extends Command if ($save_record) { $send = array( 'user_id' => $v['user_id'], - 'mobile' => $first_leader_user['mobile'], - 'nickname' => $first_leader_user['nickname'], - 'money' => $v['order_price'], + 'money' => $v['order_price'] ); sendBillionsSubsidySMS($send); }