There is no problem with the back-end. The front-end prompts and the back-end prompts are different. The prompts written by the back-end tell the front-end why, and the prompts written by the front-end tell the users why.
Besides, what’s the point of spending hours arguing about something that can be changed in 5 minutes?
Yes, I think the front-end should divide the numbers on the left into 3 categories based on the text on the right, corresponding to the three situations given by the product, and then judge the numbers and display different prompts.
Because the status determined by PHP cannot only be these three types of products, all the statuses are returned to the front end for judgment. If the product adds another status later, it can be easily implemented.
The specific responsibility lies with the project manager. This is basically a problem at the demand communication level rather than at the technical level
Generally speaking, this kind of modification is done by the front end. Fortunately, PHP is a scripting language. If it is a compiled language like C#, the cost of background updates will be greater.
Just a few status codes, just write a switch case and you’re done. Don’t be angry~
Resolve emotions first, then deal with problems. Even if you get 50 answers supporting you in the forum, what's the point? It is better to write the code first, solve the problem, and then look back to see if there are any communication problems. Otherwise, the progress is stuck here. Who do you think is responsible?
This kind of responsibility is difficult to explain clearly. It is probably a problem with the product and poor communication. To put it bluntly in the company, whoever is strong will listen to whoever is strong. You can make the backend listen to you, or change the backend to listen to the product. , then you don’t need to change the front-end. If you can’t, let you change the front-end now, then just change it. This kind of problem will be encountered in many cases. Either the front-end is modified or the back-end is modified. It depends on the person to deal with it
There is no problem with the back-end. The front-end prompts and the back-end prompts are different. The prompts written by the back-end tell the front-end why, and the prompts written by the front-end tell the users why.
Besides, what’s the point of spending hours arguing about something that can be changed in 5 minutes?
Yes, I think the front-end should divide the numbers on the left into 3 categories based on the text on the right, corresponding to the three situations given by the product, and then judge the numbers and display different prompts.
Because the status determined by PHP cannot only be these three types of products, all the statuses are returned to the front end for judgment. If the product adds another status later, it can be easily implemented.
The specific responsibility lies with the project manager. This is basically a problem at the demand communication level rather than at the technical level
Generally speaking, this kind of modification is done by the front end. Fortunately, PHP is a scripting language. If it is a compiled language like C#, the cost of background updates will be greater.
Just a few status codes, just write a switch case and you’re done. Don’t be angry~
Resolve emotions first, then deal with problems. Even if you get 50 answers supporting you in the forum, what's the point? It is better to write the code first, solve the problem, and then look back to see if there are any communication problems. Otherwise, the progress is stuck here. Who do you think is responsible?
The time for posting questions and checking answers has been changed...
This kind of responsibility is difficult to explain clearly. It is probably a problem with the product and poor communication.
To put it bluntly in the company, whoever is strong will listen to whoever is strong.
You can make the backend listen to you, or change the backend to listen to the product. , then you don’t need to change the front-end. If you can’t, let you change the front-end now, then just change it.
This kind of problem will be encountered in many cases. Either the front-end is modified or the back-end is modified. It depends on the person to deal with it