Results 2 comments of Ernest

state判断我觉得不应该,因为那个有多种状态写在里面的话就会太耦合了,state应该属于业务逻辑的范畴了,https://github.com/silenceper/wechat/blob/813684e55535af7fb4cb29c3e3a9e2a02384b34e/pay/order/pay.go#L48 还有就是这里 好像跟要求的不太一样,PrePayID 其实已经写进去Package了 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6 ![image](https://user-images.githubusercontent.com/25193846/127622023-60909c28-9981-45e8-aab6-cdfe0bb0b2a2.png) 缺少了appid ,tag标签好像有点不一致也 ![image](https://user-images.githubusercontent.com/25193846/127622192-67d8ccc2-363a-4df9-b9ba-96fd3fc079d1.png)

没有pr过,不太了解流程