xingzai il y a 1 an
Parent
commit
b1c27448be
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      controllers/cygx/order.go

+ 4 - 4
controllers/cygx/order.go

@@ -161,10 +161,10 @@ func (this *OrderController) OrderList() {
 		item.InviteName = inviteNameMap[v.Mobile]
 		item.PaymentProject = v.GoodsName
 
-		//if v.OrderStatus == 2 {
-		item.PayTime = v.PayTime.Format(utils.FormatDateTime)
-		//}
-		if orderType == 1 {
+		if v.OrderStatus != 0 && v.OrderStatus != 1 {
+			item.PayTime = v.PayTime.Format(utils.FormatDateTime)
+		}
+		if orderType == 1 && v.OrderStatus != 0 && v.OrderStatus != 1 {
 			if v.GoodsId == 1 {
 				item.StartDate = v.StartDate.Format(utils.FormatDateTime)
 				item.EndDate = v.EndDate.Format(utils.FormatDateTime)