作者 王智

222

... ... @@ -124,6 +124,7 @@ class Invoice extends Api
public function InvoiceDataRendering()
{
$user_id = $this->is_token($this->request->header());
$selectedOptionszero = input('selectedOptionszero');
$is_company = Db::name('company')->where(['company_holder' => $user_id])->where(['status' => 1])->value('id');
if (empty($is_company)) {
$is_team = Db::name('team')->where(['user_id' => $user_id])->where(['status' => 1])->value('company_id');
... ... @@ -161,7 +162,7 @@ class Invoice extends Api
'address' => $ziliao['address'],
'address_con' => $ziliao['address_con'],
'invoice_head' => $ziliao['invoice_head'],
'selectedOptionszero' => $ziliao['selectedOptionszero']
'selectedOptionszero' => $selectedOptionszero
];
}
$return['company_list'] = $company_list;
... ...