作者 王智

222

... ... @@ -135,7 +135,6 @@ class Invoice extends Api
'company_tel' => '',
'invoice_address' => '',
];
$return['ISCom'] = 0;
} else {
$team_company_arr = Db::name('company')->where(['id' => $is_team])->find();
$company_list = [
... ... @@ -146,7 +145,6 @@ class Invoice extends Api
'company_tel' => $team_company_arr['company_tel'],
'invoice_address' => $team_company_arr['invoice_address'],
];
$return['ISCom'] = 1;
}
} else {
$company_arr = Db::name('company')->where(['id' => $is_company])->find();
... ... @@ -158,7 +156,6 @@ class Invoice extends Api
'company_tel' => $company_arr['company_tel'],
'invoice_address' => $company_arr['invoice_address'],
];
$return['ISCom'] = 1;
}
$ziliao = Db::name('invoice_ziliao')->where(['user_id' => $user_id])->find();
if (empty($ziliao)) {
... ... @@ -170,7 +167,6 @@ class Invoice extends Api
'invoice_head' => ''
];
$return['ISUse'] = 0;
} else {
$user_list = [
'shou' => $ziliao['shou'],
... ... @@ -179,7 +175,6 @@ class Invoice extends Api
'address_con' => $ziliao['address_con'],
'invoice_head' => $ziliao['invoice_head']
];
$return['ISUse'] = 1;
}
$return['company_list'] = $company_list;
$return['user_list'] = $user_list;
... ...