修复短信通知
This commit is contained in:
parent
7222c14d62
commit
8c99d97ae5
@ -473,7 +473,7 @@ class StoreOrderRepository extends BaseRepository
|
||||
if($group_value){
|
||||
foreach($group_value as $k=>$v){
|
||||
$phone=json_decode($v,true);
|
||||
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_CREATE', 'phone' => $phone['phone'],'orderId'=>$order->order_id]);//短信通知
|
||||
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_CREATE', 'phone' => $phone['phone'],'orderId'=>$order->order_id,'id'=>0]);//短信通知
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -319,6 +319,23 @@ class StoreOtherOrderRepository extends BaseRepository
|
||||
'id' => $order->order_id
|
||||
]
|
||||
], $order->mer_id);
|
||||
|
||||
$group_id=0;
|
||||
if($order->activity_type==98){
|
||||
$group_id=Db::name('system_group')->where('group_key','city_operations')->value('group_id');
|
||||
}else{
|
||||
$group_id=Db::name('system_group')->where('group_key','town_operation')->value('group_id');
|
||||
}
|
||||
if($group_id){
|
||||
$group_value=Db::name('system_group_data')->where('group_id',$group_id)->column('value');
|
||||
if($group_value){
|
||||
foreach($group_value as $k=>$v){
|
||||
$phone=json_decode($v,true);
|
||||
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_CREATE', 'phone' => $phone['phone'],'orderId'=>$order->order_id,'id'=>0]);//短信通知
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$this->giveIntegral($groupOrder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user