...
|
...
|
@@ -50,8 +50,8 @@ class Invoice extends Api |
|
|
$user_id = $this->is_token($this->request->header());
|
|
|
$param = $this->request->param();
|
|
|
$selectedOptionszero = input('selectedOptionszero');
|
|
|
// $arr = json_decode(htmlspecialchars_decode($selectedOptionszero), true);
|
|
|
// $str=implode(',', $arr);
|
|
|
$arr = json_decode(htmlspecialchars_decode($selectedOptionszero), true);
|
|
|
$str=implode(',', $arr);
|
|
|
// if ($param['type'] == 1) {
|
|
|
// $is_company = Db::name('company')->where(['company_holder' => $user_id])->find();
|
|
|
// if (empty($is_company)) {
|
...
|
...
|
@@ -67,7 +67,7 @@ class Invoice extends Api |
|
|
'address' => $param['address'],
|
|
|
'address_con' => $param['address_con'],
|
|
|
'invoice_head' => $param['invoice_head'],
|
|
|
'selectedOptionszero' => $selectedOptionszero
|
|
|
'selectedOptionszero' => $str
|
|
|
];
|
|
|
// } else {
|
|
|
// $data = [
|
...
|
...
|
|