diff --git a/application/crm/logic/MessageLogic.php b/application/crm/logic/MessageLogic.php index add0834..c6240b0 100644 --- a/application/crm/logic/MessageLogic.php +++ b/application/crm/logic/MessageLogic.php @@ -282,8 +282,8 @@ class MessageLogic extends Common $param['check_status'] = ['lt', 2]; $param['check_user_id'] = ['like', '%,'. $param['user_id'] .',%']; # 要提醒的商机ID - $businessIdArray = db('crm_dealt_relation')->where(['types' => ['eq', 'crm_customer_check'], 'user_id' => ['eq', $param['user_id']]])->column('types_id'); - $param['businessIdArray'] = !empty($businessIdArray) ? $businessIdArray : -1; + $customerCheckIdArray = db('crm_dealt_relation')->where(['types' => ['eq', 'crm_customer_check'], 'user_id' => ['eq', $param['user_id']]])->column('types_id'); + $param['customerCheckIdArray'] = !empty($customerCheckIdArray) ? $customerCheckIdArray : -1; break; case '2' : # 全部