作者 王智

222

@@ -64,6 +64,7 @@ class Invoice extends Api @@ -64,6 +64,7 @@ class Invoice extends Api
64 'address' => $param['address'], 64 'address' => $param['address'],
65 'address_con' => $param['address_con'], 65 'address_con' => $param['address_con'],
66 'invoice_head' => $param['invoice_head'], 66 'invoice_head' => $param['invoice_head'],
  67 + 'codeArr' => $param['codeArr']
67 ]; 68 ];
68 // } else { 69 // } else {
69 // $data = [ 70 // $data = [
@@ -123,9 +124,9 @@ class Invoice extends Api @@ -123,9 +124,9 @@ class Invoice extends Api
123 public function InvoiceDataRendering() 124 public function InvoiceDataRendering()
124 { 125 {
125 $user_id = $this->is_token($this->request->header()); 126 $user_id = $this->is_token($this->request->header());
126 - $is_company = Db::name('company')->where(['company_holder' => $user_id])->where(['status'=>1])->value('id'); 127 + $is_company = Db::name('company')->where(['company_holder' => $user_id])->where(['status' => 1])->value('id');
127 if (empty($is_company)) { 128 if (empty($is_company)) {
128 - $is_team = Db::name('team')->where(['user_id' => $user_id])->where(['status'=>1])->value('company_id'); 129 + $is_team = Db::name('team')->where(['user_id' => $user_id])->where(['status' => 1])->value('company_id');
129 if (empty($is_team)) { 130 if (empty($is_team)) {
130 $company_list = ''; 131 $company_list = '';
131 } else { 132 } else {