Sfoglia il codice sorgente

资格信息调整

abiao 3 anni fa
parent
commit
599aaa0ffd

+ 3 - 0
go/gopath/src/fohow.com/apps/controllers/order_controller/order_controller.go

@@ -758,6 +758,9 @@ func (self *OrderController) DisrictList() {
 	wxUId := self.GetCurrentWxUserIdByToken()
 	wxUser := user_model.GetWxUserById(wxUId, true)
 
+	if wxUser.Rank <= user_model.WX_USER_RANK_ONE || wxUser.TcBl <= 0 {
+		self.ReturnError(404, apps.WrongUserRank, "", nil)
+	}
 	orders := order_model.GetDistrictOrders(wxUser.TcBl, page, perPage, wxUser.TcArea)
 	count := order_model.GetDistrictOrdersCount(wxUser.TcBl, wxUser.TcArea)
 

+ 1 - 0
go/gopath/src/fohow.com/apps/init.go

@@ -212,6 +212,7 @@ var (
 	OnlyNew        = []string{"onlyNew", "仅限新人购买"}
 	OrderNotEnough = []string{"orderNotEnough", "订单金额不满足"}
 	HasPatched     = []string{"hasPached", "已发放"}
+	WrongUserRank  = []string{"wrongUserRank", "会员资格信息错误"}
 )
 
 type BaseController struct {