mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	新版IP库管理阶段性提交(未完成)
This commit is contained in:
		@@ -42,7 +42,7 @@ func (this *ProvincesAction) RunGet(params struct {
 | 
			
		||||
		selectedProvinceIds = policyConfig.Inbound.Region.DenyProvinceIds
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithCountryIdRequest{
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithRegionCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithRegionCountryIdRequest{
 | 
			
		||||
		RegionCountryId: int64(ChinaCountryId),
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,7 @@ func (this *ProvincesAction) RunGet(params struct {
 | 
			
		||||
		selectedProvinceIds = policyConfig.Inbound.Region.DenyProvinceIds
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithCountryIdRequest{
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithRegionCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithRegionCountryIdRequest{
 | 
			
		||||
		RegionCountryId: int64(ChinaCountryId),
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ type ProvinceOptionsAction struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (this *ProvinceOptionsAction) RunPost(params struct{}) {
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithCountryIdRequest{RegionCountryId: ChinaCountryId})
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithRegionCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithRegionCountryIdRequest{RegionCountryId: ChinaCountryId})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		this.ErrorPage(err)
 | 
			
		||||
		return
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ func (this *SelectProvincesPopupAction) RunGet(params struct {
 | 
			
		||||
}) {
 | 
			
		||||
	var selectedProvinceIds = utils.SplitNumbers(params.ProvinceIds)
 | 
			
		||||
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithCountryIdRequest{RegionCountryId: ChinaCountryId})
 | 
			
		||||
	provincesResp, err := this.RPC().RegionProvinceRPC().FindAllRegionProvincesWithRegionCountryId(this.AdminContext(), &pb.FindAllRegionProvincesWithRegionCountryIdRequest{RegionCountryId: ChinaCountryId})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		this.ErrorPage(err)
 | 
			
		||||
		return
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user