作者 王智

222

... ... @@ -50,9 +50,8 @@ class Invoice extends Api
$user_id = $this->is_token($this->request->header());
$param = $this->request->param();
$selectedOptionszero = input('data');
// $arr = json_decode(htmlspecialchars_decode($selectedOptionszero), true);
// die;
// $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)) {
... ... @@ -68,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 = [
... ...