diff --git a/application/crm/controller/Message.php b/application/crm/controller/Message.php index 77ea20d..5dc0453 100644 --- a/application/crm/controller/Message.php +++ b/application/crm/controller/Message.php @@ -775,7 +775,7 @@ class Message extends ApiCommon } # 处理待审核合同、回款、发票 - if (in_array($type, ['checkContract', 'checkReceivables', 'checkInvoice', 'checkBusiness', 'checkCustomerCheck', 'new_business'])) { + if (in_array($type, ['checkContract', 'checkReceivables', 'checkInvoice', 'checkBusiness', 'checkCustomerCheck', 'newBusiness'])) { $where['check_status'] = ['lt', '2']; $where['check_user_id'] = ['like', ',%' . $userId . '%,']; @@ -806,7 +806,7 @@ class Message extends ApiCommon } # 新商机 - if ($type == 'new_business') { + if ($type == 'newBusiness') { $newBusinessId = !empty($typeId) ? $typeId : Db::name('crm_business')->where($where)->column('business_id'); db('crm_dealt_relation')->where('user_id', $userId)->where('types', 'crm_business_new')->whereIn('types_id', $newBusinessId)->delete(); }