mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-11-02 03:06:19 +08:00
add operator info
This commit is contained in:
@@ -2,6 +2,7 @@ package love.sola.netsupport.api.stuff;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import love.sola.netsupport.api.Response;
|
||||
import love.sola.netsupport.enums.Access;
|
||||
import love.sola.netsupport.enums.Attribute;
|
||||
import love.sola.netsupport.pojo.Operator;
|
||||
import love.sola.netsupport.pojo.Ticket;
|
||||
@@ -60,6 +61,9 @@ public class TicketLookup extends HttpServlet {
|
||||
} else {
|
||||
block = op.getBlock();
|
||||
}
|
||||
if (block == 0 && op.getAccess() > Access.LEADER) {
|
||||
return new Response(Response.ResponseCode.PERMISSION_DENIED);
|
||||
}
|
||||
List<Ticket> list = TableTicket.unsolvedByBlock(block);
|
||||
return new Response(Response.ResponseCode.OK, list);
|
||||
} catch (NumberFormatException e) {
|
||||
|
||||
Reference in New Issue
Block a user