This commit is contained in:
luofei 2024-01-23 17:46:47 +08:00
commit a1c0c8e36d
2 changed files with 46 additions and 46 deletions

View File

@ -50,75 +50,75 @@ class Demo extends BaseController
// // Queue::push(ProductCopyJob::class, ['product_id' => $item['product_id']]);//短信通知
// }
$arr=[
['product_id'=>171650,],
['product_id'=>171649,],
['product_id'=>171648,],
['product_id'=>171647],
];
$mer_id=167;//导入到的商户
$street_code=510521107;//导入到的商户
$type_id=17;//导入到的商户分类
$category_id=2566;//导入到的商户分类
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
$arr = [
['product_id' => 171650,],
['product_id' => 171649,],
['product_id' => 171648,],
['product_id' => 171647],
];
$mer_id = 167; //导入到的商户
$street_code = 510521107; //导入到的商户
$type_id = 17; //导入到的商户分类
$category_id = 2566; //导入到的商户分类
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=236;//导入到的商户
$street_code=510521123;//导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
$mer_id = 236; //导入到的商户
$street_code = 510521123; //导入到的商户
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=237;//导入到的商户
$street_code=510521115;//导入到的商户
$mer_id = 237; //导入到的商户
$street_code = 510521115; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=238;//导入到的商户
$street_code=510521105;//导入到的商户
$mer_id = 238; //导入到的商户
$street_code = 510521105; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=239;//导入到的商户
$street_code=510521116;//导入到的商户
$mer_id = 239; //导入到的商户
$street_code = 510521116; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
//江阳
$mer_id=31;//导入到的商户
$street_code=510502108;//导入到的商户
$mer_id = 31; //导入到的商户
$street_code = 510502108; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=32;//导入到的商户
$street_code=510502107;//导入到的商户
$mer_id = 32; //导入到的商户
$street_code = 510502107; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=118;//导入到的商户
$street_code=510502106;//导入到的商户
$mer_id = 118; //导入到的商户
$street_code = 510502106; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
$mer_id=39;//导入到的商户
$street_code=510502105;//导入到的商户
$mer_id = 39; //导入到的商户
$street_code = 510502105; //导入到的商户
foreach($arr as $k=>$v){
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' =>$mer_id,'street_code'=>$street_code,'type_id'=>$type_id,'category_id'=>$category_id]);//短信通知
foreach ($arr as $k => $v) {
Queue::push(ProductCopyJob::class, ['product_id' => $v['product_id'], 'mer_id' => $mer_id, 'street_code' => $street_code, 'type_id' => $type_id, 'category_id' => $category_id]); //短信通知
}
}

View File

@ -66,8 +66,8 @@ class StoreProcessing extends BaseController
// 'mer_id' => $order['mer_id'],
// 'financial_record_sn' => $financeSn . '2'
// ];
unset($order['order_id'], $order['orderProduct'], $order['user'], $order['supply_chain_rate'], $order['logistics_code'], $order['logistics_phone']);
$order_id = Db::name('store_order_other')->insertGetId($order);
unset($order['order_id'], $order['orderProduct'], $order['user'], $order['supply_chain_rate'], $order['logistics_code'], $order['logistics_phone'],$order['consumption_money']);
$order_id = Db::name('store_order_other')->strict(false)->insertGetId($order);
foreach ($arr as $key => $value) {
$arr[$key]['order_id'] = $order_id;