duxin 3 miesięcy temu
rodzic
commit
bca59b48ac
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      internal/logic/user/getService.go

+ 1 - 1
internal/logic/user/getService.go

@@ -71,7 +71,7 @@ WHERE status = 1 and is_service_open = 0 and user_id = '%s' and product_type lik
 					}
 					orderData, _ := g.DB().Query(ctx, fmt.Sprintf(`SELECT   a.id,a.service_type,a.order_code,b.create_time   FROM jy_order_detail  a
 INNER JOIN dataexport_order b on a.order_code = b.order_code
-WHERE a.status = 1 %s and a.user_id = '%s' and a.product_type like '%s' ORDER BY b.create_time desc `, whereEntTime, userId, common.If(param.ProductType == "VIP订阅", "%VIP订阅%", "%大会员%")))
+WHERE a.status = 1 %s and b.user_phone = '%s' and a.product_type like '%s' ORDER BY b.create_time desc `, whereEntTime, param.Phone, common.If(param.ProductType == "VIP订阅", "%VIP订阅%", "%大会员%")))
 					if !orderData.IsEmpty() {
 						for _, m2 := range orderData.List() {
 							if linkedId == 0 {