作者 王智

222

... ... @@ -127,14 +127,7 @@ class Invoice extends Api
if (empty($is_company)) {
$is_team = Db::name('team')->where(['user_id' => $user_id])->value('company_id');
if (empty($is_team)) {
$company_list = [
'company_name' => '',
'credit' => '',
'bank_name' => '',
'bank_num' => '',
'company_tel' => '',
'invoice_address' => '',
];
$company_list = '';
} else {
$team_company_arr = Db::name('company')->where(['id' => $is_team])->find();
$company_list = [
... ... @@ -159,14 +152,7 @@ class Invoice extends Api
}
$ziliao = Db::name('invoice_ziliao')->where(['user_id' => $user_id])->find();
if (empty($ziliao)) {
$user_list = [
'shou' => '',
'mobile' => '',
'address' => '',
'address_con' => '',
'invoice_head' => ''
];
$user_list = '';
} else {
$user_list = [
'shou' => $ziliao['shou'],
... ...