Compare commits
	
		
			No commits in common. "bacedd206f17fde999a431db4df33730e2e53689" and "8ad6668748c65e9b742522ca74e12e8111accc87" have entirely different histories.
		
	
	
		
			bacedd206f
			...
			8ad6668748
		
	
		
| @ -156,7 +156,7 @@ func SendMsg(c *gin.Context) { | |||||||
| 			service.Error(c, err) | 			service.Error(c, err) | ||||||
| 			return | 			return | ||||||
| 		} | 		} | ||||||
| 		service.Success1(c, "发送成功", res) | 		service.Success(c, res) | ||||||
| 		return | 		return | ||||||
| 	} else { | 	} else { | ||||||
| 		res, err := service.AccountFieeProvider.SendMsg(context.Background(), &req) | 		res, err := service.AccountFieeProvider.SendMsg(context.Background(), &req) | ||||||
| @ -165,7 +165,7 @@ func SendMsg(c *gin.Context) { | |||||||
| 			return | 			return | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		service.Success1(c, "发送成功", res) | 		service.Success(c, res) | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -728,18 +728,23 @@ func HomePageRoll(c *gin.Context) { | |||||||
| 
 | 
 | ||||||
| 	var roll []Roll | 	var roll []Roll | ||||||
| 	for _, i := range res.BundleInfo { | 	for _, i := range res.BundleInfo { | ||||||
|  | 		// Default values if user not found
 | ||||||
| 		tel := "" | 		tel := "" | ||||||
| 		name := i.BundleName // Use bundle name as fallback
 | 		name := i.BundleName // Use bundle name as fallback
 | ||||||
|  | 
 | ||||||
| 		if userInfo, exists := userMap[i.CustomerId]; exists && userInfo != nil { | 		if userInfo, exists := userMap[i.CustomerId]; exists && userInfo != nil { | ||||||
|  | 			// Handle phone number masking
 | ||||||
| 			tel = userInfo.TelNum | 			tel = userInfo.TelNum | ||||||
| 			if len(tel) >= 2 { | 			if len(tel) >= 11 { // Standard 11-digit phone number
 | ||||||
| 				masked := "" | 				tel = tel[:3] + "****" + tel[7:] | ||||||
| 				for j := 0; j < len(tel)-2; j++ { | 			} else if len(tel) >= 7 { // Short number handling
 | ||||||
| 					masked += "*" | 				tel = tel[:3] + "****" + tel[7:] | ||||||
| 				} |  | ||||||
| 				tel = masked + tel[len(tel)-2:] |  | ||||||
| 			} | 			} | ||||||
|  | 
 | ||||||
|  | 			// Use user's name if available (adjust this based on your actual user struct)
 | ||||||
|  | 			// name = userInfo.Name // Uncomment if you want to use user's name instead
 | ||||||
| 		} | 		} | ||||||
|  | 
 | ||||||
| 		roll = append(roll, Roll{ | 		roll = append(roll, Roll{ | ||||||
| 			Tel:  tel, | 			Tel:  tel, | ||||||
| 			Name: name, | 			Name: name, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user