修改消费返补发送短信方法
This commit is contained in:
parent
d41d941335
commit
ef5dfea23a
@ -318,6 +318,7 @@ class BillionsLogic extends Logic
|
||||
$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'] = $money; // 改为充值金额
|
||||
$data['user_id'] = $user_id;
|
||||
@ -362,8 +363,8 @@ class BillionsLogic extends Logic
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -390,8 +391,8 @@ class BillionsLogic extends Logic
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -499,8 +500,8 @@ class BillionsLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -528,8 +529,8 @@ class BillionsLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -604,8 +605,8 @@ class BillionsLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -637,8 +638,8 @@ class BillionsLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
|
||||
@ -1753,6 +1753,7 @@ 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'];
|
||||
@ -1797,8 +1798,8 @@ class OrderLogic extends Logic
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -1825,8 +1826,8 @@ class OrderLogic extends Logic
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -1921,8 +1922,8 @@ class OrderLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -1949,8 +1950,8 @@ class OrderLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -2021,8 +2022,8 @@ class OrderLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -2053,8 +2054,8 @@ class OrderLogic extends Logic
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
|
||||
@ -89,6 +89,7 @@ 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;
|
||||
@ -134,8 +135,8 @@ class WechatMiNiCheckPayOrder extends Command
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -162,8 +163,8 @@ class WechatMiNiCheckPayOrder extends Command
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -261,8 +262,8 @@ class WechatMiNiCheckPayOrder extends Command
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -290,8 +291,8 @@ class WechatMiNiCheckPayOrder extends Command
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -358,8 +359,8 @@ class WechatMiNiCheckPayOrder extends Command
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -391,8 +392,8 @@ class WechatMiNiCheckPayOrder extends Command
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
|
||||
@ -419,6 +419,7 @@ class PayNotifyLogic
|
||||
$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;
|
||||
@ -463,8 +464,8 @@ class PayNotifyLogic
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -492,8 +493,8 @@ class PayNotifyLogic
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -593,8 +594,8 @@ class PayNotifyLogic
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -623,8 +624,8 @@ class PayNotifyLogic
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -694,8 +695,8 @@ class PayNotifyLogic
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -728,8 +729,8 @@ class PayNotifyLogic
|
||||
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
|
||||
@ -73,6 +73,7 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
$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;
|
||||
@ -118,8 +119,8 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -146,8 +147,8 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
if ($first_save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -242,8 +243,8 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -271,8 +272,8 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -336,8 +337,8 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
@ -369,8 +370,8 @@ class WechatMiNiCheckPayOrder extends IndexBase
|
||||
if ($save_record) {
|
||||
$send = array(
|
||||
'user_id' => $v['user_id'],
|
||||
'mobile' => $user['mobile'],
|
||||
'nickname' => $user['nickname'],
|
||||
'mobile' => $first_leader_user['mobile'],
|
||||
'nickname' => $first_leader_user['nickname'],
|
||||
'money' => $v['order_price'],
|
||||
);
|
||||
sendBillionsSubsidySMS($send);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user