Commit bed76a47 by 连敬荣

新增报价公司匹配报价人,当获取channel_id为空时返回-1

parent 068630b7
Showing with 6 additions and 1 deletions
......@@ -245,7 +245,12 @@ class CommonModel extends Model
$lieIntracodeModel = new LieIntracodeModel();
$lieSupplierChannelModel = new LieSupplierChannelModel();
$code_id = $lieIntracodeModel->getCodeId($user_id);
$channel_id = $code_id[0]['code_id'];
if(empty($code_id)){
$channel_id = -1;
}else{
$channel_id = $code_id[0]['code_id'];
}
// $supplierInfo = $lieSupplierChannelModel->adminGetSupplierName($supplier_name);
// var_dump($supplierInfo);
// exit();
......
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