wkyuer 8 달 전
부모
커밋
c254c4ad7e
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/jfw/front/returnMoneyPage.go
  2. 1 0
      src/web/templates/common/returnMoney/wxReturnMoney.html

+ 3 - 0
src/jfw/front/returnMoneyPage.go

@@ -158,7 +158,10 @@ func getReturnPayDetail(token string) (map[string]interface{}, error) {
 	)
 	if status > 0 {
 		return nil, fmt.Errorf("<p>您已完成支付!</p>")
+	} else if status == -1 {
+		return nil, fmt.Errorf("<p>支付二维码已过期,请联<br>系您的客户经理重新提供</p>")
 	}
+
 	if expire, err := time.ParseInLocation(time.DateTime, expire_time, time.Local); err == nil {
 		if time.Now().After(expire) {
 			go public.Mysql.Update("return_money_online", map[string]interface{}{"token": token, "status": 0}, map[string]interface{}{"status": -1})

+ 1 - 0
src/web/templates/common/returnMoney/wxReturnMoney.html

@@ -185,6 +185,7 @@
                                 iconHide: true,
                                 duration: 1500
                               })
+                              location.reload();
                             }
                           })
                         },