wkyuer 7 mesi fa
parent
commit
19b3181261
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/jfw/modules/subscribepay/src/entity/returnMoney.go

+ 1 - 1
src/jfw/modules/subscribepay/src/entity/returnMoney.go

@@ -61,7 +61,7 @@ func (m *returnMoneyStruct) PayCallBack(param *CallBackParam) bool {
 
 
 // CloseOrder 关闭其他未支付的订单
 // CloseOrder 关闭其他未支付的订单
 func (m *returnMoneyStruct) CloseOrder(orderOrder string) {
 func (m *returnMoneyStruct) CloseOrder(orderOrder string) {
-	res := util.Mysql.Query("SELECT p.pay_way,p.out_trade_no FROM return_money_online r inner join return_money_online_pay p on (r.id = p.return_id and p.status=1)  WHERE p.status=0 and r.order_code=? and r.expire_time>?", orderOrder, time.Now().Format(time.DateTime))
+	res := util.Mysql.Query("SELECT p.pay_way,p.out_trade_no FROM return_money_online r inner join return_money_online_pay p on (r.id = p.return_id and p.status=0)  WHERE r.order_code=? and r.expire_time>?", orderOrder, time.Now().Format(time.DateTime))
 	if res != nil && len(*res) > 0 {
 	if res != nil && len(*res) > 0 {
 		for _, m := range *res {
 		for _, m := range *res {
 			var (
 			var (