Existing A page linked to page B, B page to pass parameters of the intact to C, but access to other parameters when the B page refresh the page, how to ensure the parameters of the original intact to C
CodePudding user response:
In the session
CodePudding user response:
Such payment is no problem, but to participate in, when acquiring the openid to refresh the page, the parameter is missing, how to solve
CodePudding user response:
Not use URL parameters
CodePudding user response:
The
reference 3 floor nan peony reply: does not use URL parameters URL POST preach in the past, don't refresh no problem, a refresh is lost CodePudding user response:
Parameters are your own,,, Fear of loss parameters when you refresh the page? After you confirm payment parameters, through the session can't get? CodePudding user response:
reference 5 floor is nu month god reply: parameter is your own,,, Fear of loss parameters when you refresh the page? After you confirm payment parameters, through the session can't get? Browser session at the computer end no problem, I am in WeChat browser, access to the openid automatically refresh the page, when all the arguments over data is lost, CodePudding user response:
refer to 6th floor zhangfengyi response: Quote: refer to fifth floor is nu month god reply: Parameters are your own,,, Fear of loss parameters when you refresh the page? After you confirm payment parameters, through the session can't get? Browser session at the computer end no problem, I am in WeChat browser, access to the openid automatically refresh the page, when all the arguments over the data is lost, Strange, I was developing WeChat payment, payment after, is directly with the results of Js end can get to the payment information, And WeChat in the back-end will also try to give you a callback, So you just pass the order number on the API to check the payment result is correct CodePudding user response:
references on 7th floor is wrath of god reply: Quote: refer to the sixth floor zhangfengyi response: Quote: refer to 5 floor is nu month god reply: Parameters are your own,,, Fear of loss parameters when you refresh the page? After you confirm payment parameters, through the session can't get? Browser session at the computer end no problem, I am in WeChat browser, access to the openid automatically refresh the page, when all the arguments over the data is lost, Strange, I was developing WeChat payment, payment after, is directly with the results of Js end can get to the payment information, And WeChat in the back-end will also try to give you a callback, So you just pass the order number on the API to check the payment result whether it is good to correct My process: the product page of the product value and adjust the send page, send for openid, and obtain the parameters of the product over, the payment page, paid successfully transferred to read pages, here to pass the product ID, cost, product name, if these three are written in the send page is ok, struggle here, don't know how people WeChat pay implementation, do WeChat payment for the first time, CodePudding user response:
refer to the eighth floor zhangfengyi response: Quote: refer to 7th floor is nu month god reply: Quote: refer to the sixth floor zhangfengyi response: Quote: refer to 5 floor is nu month god reply: Parameters are your own,,, Fear of loss parameters when you refresh the page? After you confirm payment parameters, through the session can't get? Browser session at the computer end no problem, I am in WeChat browser, access to the openid automatically refresh the page, when all the arguments over the data is lost, Strange, I was developing WeChat payment, payment after, is directly with the results of Js end can get to the payment information, And WeChat in the back-end will also try to give you a callback, So you just pass the order number on the API to check the payment result whether it is good to correct My process: the product page of the product value and adjust the send page, send for openid, and obtain the parameters of the product over, the payment page, paid successfully transferred to read pages, here to pass the product ID, cost, product name, if these three are written in the send page, struggle here, don't know how people WeChat pay implementation, for the first time do WeChat pay, You can write in the send global variables, not showing good ah, CodePudding user response:
The parameters can be written to localstroge CodePudding user response:
Settled, save in the database, this need not the session cookie