|
@@ -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})
|