作者 王智

222

... ... @@ -64,6 +64,7 @@ class Invoice extends Api
'address' => $param['address'],
'address_con' => $param['address_con'],
'invoice_head' => $param['invoice_head'],
'codeArr' => $param['codeArr']
];
// } else {
// $data = [
... ... @@ -123,9 +124,9 @@ class Invoice extends Api
public function InvoiceDataRendering()
{
$user_id = $this->is_token($this->request->header());
$is_company = Db::name('company')->where(['company_holder' => $user_id])->where(['status'=>1])->value('id');
$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');
$is_team = Db::name('team')->where(['user_id' => $user_id])->where(['status' => 1])->value('company_id');
if (empty($is_team)) {
$company_list = '';
} else {
... ...