飞书消息推送
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user