Merge branch 'develop'
# Conflicts: # app/common/utils/FeishuMessage.php # app/inquiry/controller/InquiryLogController.php # app/queue/redis/FeishuMessage.php
This commit is contained in:
@@ -129,6 +129,19 @@ class TicketService
|
||||
foreach ($ticket_status as $key => $value) {
|
||||
$status[] = ['value' => $key, 'text' => $value];
|
||||
}
|
||||
|
||||
if (empty($data['id'])) {
|
||||
return $status;
|
||||
}
|
||||
|
||||
$res = (new TicketLogic())->find($data['id']);
|
||||
if(!empty($res) && $res->user_id == $data['user_id']){
|
||||
$status = [
|
||||
['value' => Constants::TICKET_STATUS['PENDING'], 'text' => $ticket_status[Constants::TICKET_STATUS['PENDING']]],
|
||||
['value' => Constants::TICKET_STATUS['REJECTED'], 'text' => $ticket_status[Constants::TICKET_STATUS['REJECTED']]],
|
||||
];
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user