Merge pull request #1977 from QuantumNous/fix/bills

❤ fix(topup): prevent nil-pointer in Epay callback; reset page on search
This commit is contained in:
Seefs
2025-10-07 14:15:48 +08:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -237,8 +237,8 @@ func EpayNotify(c *gin.Context) {
_, err := c.Writer.Write([]byte("fail"))
if err != nil {
log.Println("易支付回调写入失败")
return
}
return
}
verifyInfo, err := client.Verify(params)
if err == nil && verifyInfo.VerifyStatus {

View File

@@ -102,6 +102,11 @@ const TopupHistoryModal = ({ visible, onCancel, t }) => {
setPage(1);
};
const handleKeywordChange = (value) => {
setKeyword(value);
setPage(1);
};
// 管理员补单
const handleAdminComplete = async (tradeNo) => {
try {
@@ -231,7 +236,7 @@ const TopupHistoryModal = ({ visible, onCancel, t }) => {
prefix={<IconSearch />}
placeholder={t('订单号')}
value={keyword}
onChange={setKeyword}
onChange={handleKeywordChange}
showClear
/>
</div>