In a recent project involving microprogram back-end development, I faced a requirement where the user confirmation of receipt is handled by a WeChat mini-program component, which subsequently pushes the confirmation information to the server. The server then updates the order status. However, the mini-program configuration for message push (event push) only allows for a single configuration, which poses a challenge in distinguishing between online and test server messages.
This is particularly relevant because the project involves two environments: the online formal server and the experiential version test server. In order to resolve this issue, I need to develop a relay function to forward the message push.
The article https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/order-shipping/order-shipping-half.html provides more information on the order shipping feature in WeChat mini-programs.