Home > Net >  How to realize the top-up balance changes in the function
How to realize the top-up balance changes in the function

Time:11-20

CodePudding user response:

A interface, after the success of the payment will have a callback, according to the content of the callback processing business

CodePudding user response:

Remember to give me top-up point bus card, I only 1 piece of 4,

CodePudding user response:

A top-up packet parameters of synchronous notification address (page) and asynchronous notifications (successful top-up database data back to write), input outside your own web server receives address, prepaid phone after successful each other server will be with you reserved asynchronous notification address for data communications, general according to certain time interval of 24 hours of uninterrupted until your server sends out success, remember to use the order number to prevent repeated top-up

CodePudding user response:

Payment of success should have receipt,
And then through the begin. Invke update your balance,

CodePudding user response:

Mature and efficient business system, the use of "two-way communication" mechanism keep front-end interface program and server two-way communication, so that when the server receives notice of the payment gateway, should be a push message directly to the front-end interface program,

But many beginners may have little learning two-way communication basic technology, all kinds of training institutions and introductory books in order to make money and just teach the most basic knowledge of communication, learning is a "question and answer" one-way communication technology, such as HTTP is, can only be your client interface program launched a request to the server, not by the server to accurately push message, so that when you develop a program that commercial software, there may be 100000 concurrent users online, for example, suppose your interface client every 3 seconds to server polling event processing result, may be "killed", the server because the server received the impact of the irrational polling 3300 times per second, and 3 seconds to respond to the front-end interface, felt very "card" to the user and the low, you can imagine WeChat or QQ every caton images of 3 seconds to display of communications messages...

Therefore, for starters, actually can use front polling the server, but you know, this is the best in class beginners, rather than the practical technology,

CodePudding user response:

Once the business data of the need to design the communication Model of different design patterns, it will need to modify and improve knowledge concept, your only "polling the server" design mode with two-way communication tech-oriented cooperative management mode, in the first, the definition of a data Model as well as the front-end processing sequential design, affirmation is a huge difference, so here I also can't say more, say more meaningless, only as an inspired,
  •  Tags:  
  • C#
  • Related