飞书消息推送

This commit is contained in:
mzl
2025-07-25 13:39:23 +08:00
parent 9fdf2dabde
commit 2b052ec2b4
10 changed files with 904 additions and 22 deletions
+42 -3
View File
@@ -97,11 +97,11 @@ class InquiryLogService
}
// ====== ====== 关联 ====== ======
$config['with']['country'][] = 'cn_addr';
$config['with']['country'][] = 'steering';
$config['with']['countryInfo'][] = 'cn_addr';
$config['with']['countryInfo'][] = 'steering';
$config['with']['enter'][] = 'name';
$config['with']['recipient'][] = 'name';
$config['with']['channel'][] = 'name';
$config['with']['channelInfo'][] = 'name';
break;
case 'show':
case 'update':
@@ -184,4 +184,43 @@ class InquiryLogService
RedisQueueRedis::send('inquiry-to-crm', $res);
return $res;
}
/**
* 获取询单ById
* @param int|string $id
* @param string $orderSn
* @return Model|null
*/
public function getInquiryLogBy(int|string $id)
{
$config = [];
$config['model'] = $this->modelClass;
$config['with']['countryInfo'][] = 'cn_addr';
$config['with']['countryInfo'][] = 'steering';
$config['with']['enter'][] = 'name';
$config['with']['recipient'][] = 'name';
$config['with']['channelInfo'][] = 'name';
$config['orWhere'][] = ['id', '=', $id];
$config['orWhere'][] = ['order_no', '=', $id];
return $this->logicShow($config);
}
/**
* 获取等级名称
* @param $id
* @return string
*/
public function qualityName($id)
{
if (!$id) {
return '🤍 银牌商机';
}
$quality = [
1 => '💛 金牌商机',
2 => '🤍 银牌商机',
3 => '🤍 银牌商机'
];
return $quality[$id];
}
}