How to do the similar order receiving function like Didi by php? thank you.

want to do the function of taking an order like Didi, for example, how do I click on the order and then the system automatically dispatches it to me? do the gods have any good ideas? thank you

Php
Jul.06,2022

Let's start with the simplest
if you are a driver, you build a driver table, and there is a field in the table that indicates that the driver is online and offline. When the driver clicks the order button, the status of the field in the table is changed to online. When the system dispatches orders, it looks for driver conditions and filters only to dispatch orders to online drivers, and then the driver can receive the order.

but in practical application, it will certainly be much more complicated than this, and a lot of technologies are involved.

Menu