|
@@ -758,6 +758,9 @@ func (self *OrderController) DisrictList() {
|
|
|
wxUId := self.GetCurrentWxUserIdByToken()
|
|
wxUId := self.GetCurrentWxUserIdByToken()
|
|
|
wxUser := user_model.GetWxUserById(wxUId, true)
|
|
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)
|
|
orders := order_model.GetDistrictOrders(wxUser.TcBl, page, perPage, wxUser.TcArea)
|
|
|
count := order_model.GetDistrictOrdersCount(wxUser.TcBl, wxUser.TcArea)
|
|
count := order_model.GetDistrictOrdersCount(wxUser.TcBl, wxUser.TcArea)
|
|
|
|
|
|