diff --git a/app/queue/redis/PushPlatformPrintSend.php b/app/queue/redis/PushPlatformPrintSend.php index 084c6b6..3ef7415 100644 --- a/app/queue/redis/PushPlatformPrintSend.php +++ b/app/queue/redis/PushPlatformPrintSend.php @@ -45,7 +45,7 @@ class PushPlatformPrintSend implements Consumer $find['mer_user_mobile'] = $mer_user_info['mobile']; $find['nickname'] = $user['nickname']; $find['user_mobile'] = $user['mobile']; - $find['info'] = Cashierinfo::where('pid', 445)->field('goods,nums,price,total')->select()->each(function ($item) { + $find['info'] = Cashierinfo::where('pid', $find['id'])->field('goods,nums,price,total')->select()->each(function ($item) { $goods = Goods::where('id', $item['goods'])->field('name,unit')->find(); $item['unit_name'] = Unit::where('id', $goods['unit'])->value('name'); $item['goods_name'] = $goods['name'];