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 {
 	if status > 0 {
 		return nil, fmt.Errorf("<p>您已完成支付!</p>")
 		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 expire, err := time.ParseInLocation(time.DateTime, expire_time, time.Local); err == nil {
 		if time.Now().After(expire) {
 		if time.Now().After(expire) {
 			go public.Mysql.Update("return_money_online", map[string]interface{}{"token": token, "status": 0}, map[string]interface{}{"status": -1})
 			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,
                                 iconHide: true,
                                 duration: 1500
                                 duration: 1500
                               })
                               })
+                              location.reload();
                             }
                             }
                           })
                           })
                         },
                         },