作者 王智

222

... ... @@ -123,7 +123,7 @@ 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])->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');
if (empty($is_team)) {
... ...