fix
This commit is contained in:
parent
844de1e10f
commit
5ff7d114e5
|
@ -67,16 +67,15 @@ class Scripts
|
||||||
request('/user/logout')
|
request('/user/logout')
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.createTicket(title = 'Winter is coming',content = 'The north remembers')
|
def self.createTicket(title = 'Winter is coming',content = 'The north remembers', department = 1)
|
||||||
result = request('/ticket/create', {
|
result = request('/ticket/create', {
|
||||||
title: title,
|
title: title,
|
||||||
content: content,
|
content: content,
|
||||||
departmentId: 1,
|
departmentId: department,
|
||||||
language: 'en',
|
language: 'en',
|
||||||
csrf_userid: $csrf_userid,
|
csrf_userid: $csrf_userid,
|
||||||
csrf_token: $csrf_token
|
csrf_token: $csrf_token
|
||||||
})
|
})
|
||||||
|
|
||||||
result['data']
|
result['data']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue