このコミットが含まれているのは:
テクニカル諏訪子 2018-04-30 00:31:03 +09:00
コミット f6c273cb59
1個のファイルの変更5行の追加5行の削除

ファイルの表示

@ -23,7 +23,7 @@ class InvoiceController extends Controller {
}
// Clients
public function getClients() { // /api/rpc/invoice/clients/getclients
public function getClients(Request $request) { // /api/rpc/invoice/clients/getclients
$check = $this->objAuth->checkLegit($request->username, $request->password);
if ($check == 0) {
@ -89,7 +89,7 @@ class InvoiceController extends Controller {
}
// Contacts
public function getContacts() { // /api/rpc/invoice/contacts/getcontacts
public function getContacts(Request $request) { // /api/rpc/invoice/contacts/getcontacts
$check = $this->objAuth->checkLegit($request->username, $request->password);
if ($check == 0) {
@ -141,14 +141,14 @@ class InvoiceController extends Controller {
DB::table('inv_clients')
->insert([
'contact_id' => $add
])
]);
}
if ($request->isEmployer) {
DB::table('inv_employers')
->insert([
'contact_id' => $add
])
]);
}
return 'Success!';
@ -168,7 +168,7 @@ class InvoiceController extends Controller {
}
// Employers
public function getEmployers() { // /api/rpc/invoice/employees/getemployers
public function getEmployers(Request $request) { // /api/rpc/invoice/employees/getemployers
$check = $this->objAuth->checkLegit($request->username, $request->password);
if ($check == 0) {