Commit 68e0eb8f by 朱继来

调整

parent cac76ba0
Showing with 3 additions and 3 deletions
......@@ -574,10 +574,10 @@ class ApiController extends Controller
$map['sale_id'] = $request->user->userId;
$map['status'] = 0;
$com_id = DB::connection('crm')->table('invoice_com_user')->where($map)->value('com_id');
if (!$com_id) $this->Export(-1, '当前登录用户未绑定该联系人');
$com_info = DB::connection('crm')->table('invoice_com_user')->where($map)->first();
if (!$com_info) $this->Export(-1, '当前登录用户未绑定该联系人');
$com_name = DB::connection('crm')->table('invoice_company')->where('id', $com_id)->value('com_name');
$com_name = DB::connection('crm')->table('invoice_company')->where('id', $com_info->id)->value('com_name');
$this->Export(0, '', ['com_id'=>$com_id, 'com_name'=>$com_name, 'user_id'=>$user_id, 'account'=>$account]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment