作者 王智

222

@@ -51,7 +51,7 @@ class Invoice extends Api @@ -51,7 +51,7 @@ class Invoice extends Api
51 $param = $this->request->param(); 51 $param = $this->request->param();
52 $selectedOptionszero = input('data'); 52 $selectedOptionszero = input('data');
53 $arr = json_decode(htmlspecialchars_decode($selectedOptionszero), true); 53 $arr = json_decode(htmlspecialchars_decode($selectedOptionszero), true);
54 - $str = implode($arr,','); 54 + $str = implode($arr, ',');
55 // if ($param['type'] == 1) { 55 // if ($param['type'] == 1) {
56 // $is_company = Db::name('company')->where(['company_holder' => $user_id])->find(); 56 // $is_company = Db::name('company')->where(['company_holder' => $user_id])->find();
57 // if (empty($is_company)) { 57 // if (empty($is_company)) {
@@ -158,13 +158,14 @@ class Invoice extends Api @@ -158,13 +158,14 @@ class Invoice extends Api
158 if (empty($ziliao)) { 158 if (empty($ziliao)) {
159 $user_list = ''; 159 $user_list = '';
160 } else { 160 } else {
  161 + $data_arr = explode(',', $ziliao['selectedOptionszero']);
161 $user_list = [ 162 $user_list = [
162 'shou' => $ziliao['shou'], 163 'shou' => $ziliao['shou'],
163 'mobile' => $ziliao['mobile'], 164 'mobile' => $ziliao['mobile'],
164 'address' => $ziliao['address'], 165 'address' => $ziliao['address'],
165 'address_con' => $ziliao['address_con'], 166 'address_con' => $ziliao['address_con'],
166 'invoice_head' => $ziliao['invoice_head'], 167 'invoice_head' => $ziliao['invoice_head'],
167 - 'selectedOptionszero' => $ziliao['selectedOptionszero'] 168 + 'selectedOptionszero' => $data_arr
168 ]; 169 ];
169 } 170 }
170 $return['company_list'] = $company_list; 171 $return['company_list'] = $company_list;