make(StoreOrderCartInfoServices::class); $storeName = $orderInfoServices->getCarIdByProductTitle((int)$orderInfo['id']); $orderInfo['storeName'] = substrUTf8($storeName, 20, 'UTF-8', ''); $orderInfo['send_name'] = $orderInfo['real_name']; //分配完成用户推送消息事件(门店小票打印) event('notice.notice', [$orderInfo, 'order_pay_success']); } if (isset($orderInfo['store_id']) && $orderInfo['store_id']) { //记录门店用户 /** @var StoreUserServices $storeUserServices */ $storeUserServices = app()->make(StoreUserServices::class); $storeUserServices->setStoreUser((int)$orderInfo['uid'], (int)$orderInfo['store_id']); } event('notice.notice', [$orderInfo, 'admin_pay_success_code']); return true; } }